• set
• multiset
• hash_set
• hash_multiset
[1] This is a consequence of the Immutability of Keys invariant of Associative Container. Keys may never be modified; values in a Simple Associative Container are themselves keys, so it immediately follows that values in a Simple Associative Container may not be modified.
Associative Container, Pair Associative Container
Pair Associative Container
Category: containers
Component type: concept
A Pair Associative Container is an Associative Container that associates a key with some other object. The value type of a Pair Associative Container is
Associative Container
One new type is introduced, in addition to the types defined in the Associative Container requirements. Additionally, Pair Associative Container introduces one new type restriction
Key type | X::key_type | The type of the key associated with |
Data type | X::data_type | The type of the data associated with |
Value type | X::value_type | The type of object stored in the container. The value type is required to be |
X
A type that is a model of Pair Associative Container
a
Object of type
t
Object of type
d
Object of type
k
Object of type
p, q
Object of type
None, except for those defined in the Associative Container requirements.
• map
• multimap
• hash_map
• hash_multimap
[1] The value type must be
Associative Container, Simple Associative Container
Sorted Associative Container
Category: containers
Component type: concept
A Sorted Associative Container is a type of Associative Container. Sorted Associative Containers use an ordering relation on their keys; two keys are considered to be equivalent if neither one is less than the other. (If the ordering relation is case-insensitive string comparison, for example, then the keys 'abcde' and 'aBcDe' are equivalent.)
Sorted Associative Containers guarantee that the complexity for most operations is never worse than logarithmic [1], and they also guarantee that their elements are always sorted in ascending order by key.
Reversible Container, Associative Container
Two new types are introduced, in addition to the types defined in the Associative Container and Reversible Container requirements.
X::key_compare | The type of a Strict Weak Ordering used to compare keys. Its argument type |