开发者

Is there a container facade in Boost?

开发者 https://www.devze.com 2023-03-18 10:30 出处:网络
I\'m lea开发者_如何学Gorning 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

I'm lea开发者_如何学Gorning 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 would wrap a pair of iterators from the given container in a boost::iterator_range from the Boost.Range library.

0

精彩评论

暂无评论...
验证码 换一张
取 消