Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-24 11:12:54


I have a simple class, which three interesting
methods:
- current
- advance
- eof

I had a custom wrapper which converts any class which such methods (and some
typedefs) and now I want to use iterator adaptors library. What is the best
approach? I can roll a new policy class, of course.

But I think the above set of operation is quite handy when one wants to create
a new input iterator. The wrapped class is also close to Generator, with
added 'eof' method. So, I wonder, if I should strive to make something
reusable, which can be added to the library?

- Volodya


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