Insert range | a.insert(i, j) | Equivalent to | The size of |
The range constructor, and range constructor with compare, are in general
Insert with hint is logarithmic in general, but it is amortized constant time if
Insert range is in general
Strictly ascending order | The elements in a Unique Sorted Associative Container are always arranged in strictly ascending order by key. That is, if |
• map
• set
[1] At present (early 1998), not all compilers support 'member templates'. If your compiler supports member templates then
[2] This is a more stringent invariant than that of Sorted Associative Container. In a Sorted Associative Container we merely know that every element is less than or equal to its successor; in a Unique Sorted Associative Container, however, we know that it must be less than its successor.
Associative Container, Sorted Associative Container, Multiple Sorted Associative Container, Hashed Associative Container
Multiple Sorted Associative Container
Category: containers
Component type: concept
A Multiple Sorted Associative Container is a Sorted Associative Container that is also a Multiple Associative Container. That is, it is a Sorted Associative Container
with the property that any number of elements in the container may have equivalent keys.
Sorted Associative Container, Multiple Associative Container
None, except for those described in the Sorted Associative Container and Multiple Associative Container requirements.
X
A type that is a model of Multiple Sorted Associative Container
a
Object of type
t
Object of type
k
Object of type
p, q
Object of type
c
Object of type
In addition to the expressions defined in Sorted Associative Container and Multiple Associative Container, the following expressions must be valid.
Name | Expression | Type requirements | Return type |
---|---|---|---|
Range constructor | X(i, j) X a(i, j); | X | |
Range constructor with compare |