In which scenario do I use a particular STL container?

后端 未结 10 934
遥遥无期
遥遥无期 2020-11-22 00:31

I\'ve been reading up on STL containers in my book on C++, specifically the section on the STL and its containers. Now I do understand each and every one of them have their

10条回答
  •  误落风尘
    2020-11-22 01:24

    This cheat sheet provides a pretty good summary of the different containers.

    See the flowchart at the bottom as a guide on which to use in different usage scenarios:

    http://linuxsoftware.co.nz/containerchoice.png

    Created by David Moore and licensed CC BY-SA 3.0

提交回复
热议问题