Creating my own Iterators

前端 未结 6 1691
鱼传尺愫
鱼传尺愫 2020-11-29 15:58

I\'m trying to learn C++ so forgive me if this question demonstrates a lack of basic knowledge, you see, the fact is, I have a lack of basic knowledge.

I want some h

6条回答
  •  迷失自我
    2020-11-29 16:19

    Here Designing a STL like Custom Container is an excellent article which explains some of the basic concepts of how an STL like container class can be designed along with the iterator class for it. Reverse iterator (little tougher) though is left as an exercise :-)

    HTH,

提交回复
热议问题