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

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.

主站蜘蛛池模板: 河西区| 长垣县| 赤峰市| 扶沟县| 团风县| 西峡县| 济南市| 南溪县| 淮阳县| 布尔津县| 扎赉特旗| 孟州市| 法库县| 吐鲁番市| 惠来县| 东台市| 平塘县| 繁昌县| 印江| 巴南区| 保亭| 南部县| 嘉善县| 阿坝县| 玉树县| 建平县| 黑龙江省| 南投市| 娄底市| 永寿县| 库车县| 宝坻区| 柳林县| 开封县| 洛阳市| 福建省| 长宁区| 巴南区| 巴东县| 晋宁县| 遵义县|