Custom Iterator in C++

前端 未结 6 1287
醉梦人生
醉梦人生 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:31

    If you have access to Boost, using iterator_facade is the most robust solution, and it's pretty simple to use.

提交回复
热议问题