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

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.

主站蜘蛛池模板: 都兰县| 海淀区| 松阳县| 辽源市| 维西| 屏南县| 高唐县| 慈溪市| 于都县| 五常市| 宁明县| 齐河县| 隆子县| 沅陵县| 新闻| 新巴尔虎右旗| 蕉岭县| 淅川县| 额敏县| 定陶县| 科技| 农安县| 屯留县| 子洲县| 益阳市| 那曲县| 论坛| 丹阳市| 岫岩| 富蕴县| 余干县| 灵寿县| 石楼县| 黔东| 永靖县| 乌拉特中旗| 平武县| 青州市| 荣成市| 松江区| 镇巴县|