官术网_书友最值得收藏!

Containers

STL containers are objects that typically grow and shrink dynamically. Containers use complex data structures to store the data under the hood and offer high-level functions to access the data without us delving into the complex internal implementation details of the data structure. STL containers are highly efficient and time-tested.  

Every container uses different types of data structures to store, organize, and manipulate data in an efficient way. Though many containers may seem similar, they behave differently under the hood. Hence, the wrong choice of containers leads to application performance issues and unnecessary complexities.

Containers come in the following flavors:

  • Sequential
  • Associative 
  • Container adapters

The objects stored in the containers are copied or moved, and not referenced. We will explore every type of container in the upcoming sections with simple yet interesting examples.

主站蜘蛛池模板: 和林格尔县| 景东| 噶尔县| 平凉市| 交口县| 田林县| 惠水县| 曲阜市| 剑阁县| 连平县| 思南县| 马山县| 汤原县| 博野县| 谢通门县| 菏泽市| 台州市| 德钦县| 莱阳市| 崇左市| 仙居县| 龙里县| 公主岭市| 银川市| 遂溪县| 嘉兴市| 河西区| 抚松县| 开江县| 岢岚县| 淮安市| 翁源县| 苗栗市| 施秉县| 岗巴县| 志丹县| 新昌县| 曲松县| 曲阜市| 色达县| 同仁县|