
14 May
2004
14 May
'04
6:34 p.m.
Max Khesin wrote:
I think another alternative would be to use this for counting functionality: http://www.boost.org/libs/iterator/doc/counting_iterator.html and dumb down your function_input_iterator to be a very simple Incrementable. m.
Any reason to prefer that approach? It looks like the current one (eof_iterator) meets all of my objectives. I'm happy that the interface looks like istream_iterator, which is familiar (end marker signalled via default constructor). It also calls the underlying function exactly the correct number of times, another point in it's favor.