I’m learning how to use iterator_facade to hide some boilerplate of iterator implementation. In my current use case I’m wrapping another container (from .NET code, actually) so I need the begin(), end(), typedefs, etc. At a minimum I want the resulting type to work with BOOST_FOREACH. Is there a convenient thing in boost to simplify that?
I’m learning how to use iterator_facade to hide some boilerplate of iterator implementation. In
Share
I would wrap a pair of iterators from the given container in a
boost::iterator_rangefrom the Boost.Range library.