Boost Range Library: Traversing Two Ranges Sequentially

后端 未结 3 1682
日久生厌
日久生厌 2020-12-19 11:50

Boost range library (http://www.boost.org/doc/libs/1_35_0/libs/range/index.html) allows us to abstract a pair of iterators into a range. Now I want to combine two ranges int

3条回答
  •  一个人的身影
    2020-12-19 12:17

    I think you'd have to make a custom iterator that will 'roll over' r1.end() to r2.begin() when r1.end() is reached. Begin() and end() of that iterator would then be combined into your range r. AFAIK there is no standard boost function that will give you this behavior.

提交回复
热议问题