c++11 容器库

1、顺序容器数组

顺序容器是提供可以按顺序访问元素功能的容器。数据结构

  1. array 静态连续的数组spa

  2. vector 动态连续的数组排序

  3. deque 双端队列队列

  4. forward_list 单向链表hash

  5. list 双向链表it


2、关联容器io

关联容器经过使用已排序的数据结构,提供O(log n)时间复杂度的快速搜索容器

  1. set 惟一键的集合,排序的键搜索

  2. map 经过按键的键-值对的集合,排序,键值都是惟一的

  3. multiset collection of keys, sorted by keys

  4. multimap collection of key-value pairs, sorted by keys


3、无序关联容器

  1. unordered_set      collection of unique keys,hashed by keys 

  2. unordered_map      collection of key-value pairs, hashed by keys, keys are unique

  3. unordered_multiset      collection of keys, hashed by keys

unordered_multimap      collection of key-value pairs, hashed by keys

相关文章
相关标签/搜索