1、顺序容器数组
顺序容器是提供可以按顺序访问元素功能的容器。数据结构
array 静态连续的数组spa
vector 动态连续的数组排序
deque 双端队列队列
forward_list 单向链表hash
list 双向链表it
2、关联容器io
关联容器经过使用已排序的数据结构,提供O(log n)时间复杂度的快速搜索容器
set 惟一键的集合,排序的键搜索
map 经过按键的键-值对的集合,排序,键值都是惟一的
multiset collection of keys, sorted by keys
multimap collection of key-value pairs, sorted by keys
3、无序关联容器
unordered_set collection of unique keys,hashed by keys
unordered_map collection of key-value pairs, hashed by keys, keys are unique
unordered_multiset collection of keys, hashed by keys
unordered_multimap collection of key-value pairs, hashed by keys