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

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.

主站蜘蛛池模板: 白城市| 宜春市| 北票市| 聂荣县| 临漳县| 金秀| 长治市| 芜湖县| 庆安县| 临漳县| 长白| 安龙县| 开封市| 富阳市| 建平县| 英超| 扶绥县| 信宜市| 诸城市| 金湖县| 海兴县| 甘肃省| 丘北县| 济阳县| 静乐县| 子长县| 朝阳市| 夏河县| 揭阳市| 肃北| 交城县| 叙永县| 临泽县| 隆林| 葫芦岛市| 荆门市| 谷城县| 九龙坡区| 威信县| 常德市| 夏河县|