Range constructor with key equal | X(i, j, n, h, k) X a(i, j, n, h, k); | Creates an associative container that contains all of the elements in the range |
The range constructor, range constructor with bucket count, range constructor with hash function, and range constructor with key equal, are all linear in
• hash_set
• hash_map
[1] At present (early 1998), not all compilers support 'member templates'. If your compiler supports member templates then
Associative Container, Hashed Associative Container, Multiple Hashed Associative Container Sorted Associative Container
Multiple Hashed Associative Container
Category: containers
Component type: concept
A Multiple Hashed Associative Container is a Hashed Associative Container that is also a Multiple Associative Container. That is, it is a Hashed Associative Container
with the property that any number of elements in the container may have the same key
Hashed Associative Container, Multiple Associative Container
None, except for those described in the Hashed Associative Container and Multiple Associative Container requirements.
X
A type that is a model of Hashed Associative Container
a
Object of type
t
Object of type
k
Object of type
p, q
Object of type
n
Object of type
h
Object of type
c
Object of type
In addition to the expressions defined in Hashed Associative Container and 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 bucket count | X(i, j, n) X a(i, j, n); | X | |
Range constructor with hash function | X(i, j, n, h) X a(i, j, n, h); | X | |
Range constructor with key equal | X(i, j, n, h, k) X a(i, j, n, h, k); | X |