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

  • Mastering C++ Programming
  • Jeganathan Swaminathan
  • 137字
  • 2021-07-02 18:28:48

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.

主站蜘蛛池模板: 彭山县| 永嘉县| 大名县| 新巴尔虎右旗| 虎林市| 宿迁市| 瑞丽市| 黄龙县| 灵石县| 即墨市| 嘉峪关市| 齐河县| 金溪县| 安平县| 广州市| 沙坪坝区| 梓潼县| 眉山市| 民勤县| 米林县| 马龙县| 行唐县| 赤壁市| 建宁县| 石家庄市| 金华市| 汕尾市| 梁河县| 吉木乃县| 临潭县| 汾阳市| 博乐市| 错那县| 禄丰县| 精河县| 盐亭县| 崇礼县| 高平市| 英山县| 通化市| 积石山|