In which scenario do I use a particular STL container?

后端 未结 10 1126
遥遥无期
遥遥无期 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:20

    I redesigned the flowchart to have 3 properties:

    1. I think STL containers are devided to 2 main classes. The basic containers and those leverages the basic containers to implement a policy.
    2. At first the flowchart should divide the decision process to the main situations we should decide on and then elaborate on each case.
    3. Some extended containers have the possibility of choosing different basic container as their inner container. The Flowchart should consider the situations in which each of the basic containers can be used.

    The flowchart:

    More info provided in this link.

提交回复
热议问题