A Unique Hashed Associative Container is a Hashed Associative Container that is also a Unique Associative Container. That is, it is a Hashed Associative Container with the property that no two elements in the container have the same key.
Hashed Associative Container, Unique Associative Container
None, except for those described in the Hashed Associative Container and Unique 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 Unique 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 |
Name | Expression | Precondition | Semantics | Postcondition |
---|---|---|---|---|
Range constructor | X(i, j) X a(i, j); | Creates an associative container that contains all of the elements in the range | ||
Range constructor with bucket count | X(i, j, n) X a(i, j, n); | Creates an associative container that contains all of the elements in the range | ||
Range constructor with hash function | X(i, j, n, h) X a(i, j, n, h); | Creates an associative container that contains all of the elements in the range |