a set容器元素是独特的,百叶窗,以及复制元素指出犯。the elements are sorted according to their收益。
他是在复制元素喷头的设置是允许的。
(also called年有地图相联阵列)是集,每个元素是偶数,称为A键/值对。the key is used for排序和索引the data,and must be独特。the value is the actual数据。
(also called a multimap字典)是地图,允许复制的钥匙。真正的生活是multimaps词典:the key is the word,andthe value is the meaning of the Word。所有的钥匙都sorted in升序,你看了the value的关键。some words canhave多重含义,which is why the词典是multimap rather than a地图。
集装箱adapters
集装箱adapters are special predefined adapted to specific uses that are容器。the有趣的方面关于集装箱adapters是你可以选择你想要的,序列容器them to use。
他是在堆栈的容器元素operate in a LIFO(后进先出法)的上下文,where are插入元素(pushed)andremoved(吃)from the end of the容器。栈违约to using deque容器as their违约序列(这似乎奇怪,因为有更多的自然向量似乎做),目标可以使用矢量或list as well。
他是在尾容器元素operate in a FIFO(先进先出)的上下文,在元素是插入(pushed)to the back of the集装箱and removed from the阵线(吃)。尾巴违约to using deque容器,但也可以使用列表。
有Priority尾巴是型尾where the元素是让sorted(通过操作员<)。当元素是推,the element is sorted in the尾巴。拆卸一元from the前线归来the highest item in the priority priority尾巴。