Boost logo

Boost :

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk