Custom Iterator in C++

前端 未结 6 1301
醉梦人生
醉梦人生 2020-11-28 04:57

I have a class TContainer that is an aggregate of several stl collections pointers to TItems class.

I need to create an Iterator to traverse the elements in all the

6条回答
  •  盖世英雄少女心
    2020-11-28 05:43

    Check the Views Template Library.

    Especially check

    1. Union View presenting two containers concatenated.
    2. Concatenation View presenting a collection of containers concatenated.

提交回复
热议问题