kinds of Containers

来源:互联网 发布:阿里云slb负载均衡 编辑:程序博客网 时间:2024/05/17 08:58

原文:

kind of Containers

The STL has both container concepts and container types.The concepts are general categories with names such as container, sequence container, and associative container. The container types are templates you can use to creat specific container objects. The original 11 container types are deque,list, queue, priority_queue, stack, vector, map, multimap, set, multiset, and bitset.(This chapter doesn't discuss bitset, which is a container for dealing with data at the bit level.) C++ 11 adds forward_list, unorderd_map, unordered_multimap, unordered_set ,and unordered_multiset, and it moves bitset from the container category into its own separate category. Because the concepts categorize the types, let's start with them.

翻译:

容器类型

标准模板库具有容器的概念和容器类型。概念是具有名称的通用类别,例如容器、顺序容器和关联容器。容器类型是可以使用创造特定容器对象的模版。11个容器类型分别是deque,list, queue, priority_queue, stack, vector, map, multimap, set, multiset, 和 bitset(本章不讨论bitset,它是在位级上处理数据的容器)。C++ 11增加了forward_list, unorderd_map, unordered_multimap, unordered_set ,和 unordered_multiset容器类别,同时将bitset类别归为自己特定拥有的类别。因为概念对类型进行了分类,我们先讨论他们。

注:[1]原文来自c++ primer plus(6)英文版(下册)

 

原创粉丝点击