C++ Primer - Chapter 9 Sequential Containers
# Chapter 9 Sequential Containers # Overview of the Sequential Containers # 顺序容器概述 顺序容器(sequential container):为程序员提供了控制元素存储和访问顺序的能力。这种顺序不依赖于元素的值,而是与元素加入容器时的位置相对应。 # 顺序容器类型 容器类型 介绍 vector 可变大小数组。支持快速随机访问。在尾部之外的位置插入或删除元素可能很慢。 deque 双端队列。支持快速随机访问。在头尾位置插入 / 删除速度很快。 list 双向链表。只支持双向顺序访问。在 list...
more...