Boost logo

Boost Users :

From: Duane Murphy (duanemurphy_at_[hidden])
Date: 2002-01-11 02:53:56


I have now built a couple of iterators using boost::iterator_adaptor.
These are not adapted iterators but rather iterators developed to iterate
over interfaces that have not iterators.

I havent found a good example of how to declare the equivalent of a
const_iterator like in vector. What would the declartion look like?

If the definition of an iterator is:

typedef boost::iterator_adaptor< Base, Policy > iterator;

What would the declartion for a const_iterator look like?

Thanks for the help.

..Duane


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net