Write C++ container that fits neatly into STL

后端 未结 4 1179
-上瘾入骨i
-上瘾入骨i 2020-12-28 16:58

I would like to write a container class in a style which fits very neatly into STL. It should look and behave as if it where a standard STL container.

Is there a man

4条回答
  •  粉色の甜心
    2020-12-28 17:41

    Besides the one recommended by user763305, I would also look at Austern, Generic Programmming and the STL: Using and Extending the C++ Standard Template Library. It discusses these sorts of issues and serves as a good reference for the concepts in STL.

提交回复
热议问题