From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-05-14 13:34:18


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.