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

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.

主站蜘蛛池模板: 宁河县| 周口市| 黎平县| 馆陶县| 会东县| 建湖县| 沙湾县| 靖安县| 禹州市| 江门市| 青铜峡市| 景宁| 永兴县| 布尔津县| SHOW| 闽清县| 乌鲁木齐市| 庆元县| 马山县| 玛多县| 石泉县| 肃北| 贵德县| 靖远县| 宝坻区| 阿瓦提县| 银川市| 衡东县| 临桂县| 上犹县| 九江县| 晴隆县| 枣阳市| 周宁县| 同江市| 延庆县| 柳江县| 侯马市| 海南省| 长乐市| 兴文县|