X::hasher | A type that is a model of Hash Function. | |
| Key equal | X::key_equal | A Binary Predicate whose argument type is |
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
A
Elements in a Hashed Associative Container are organized into
The number of elements in a Hashed Associative Container divided by the number of buckets is called the
In addition to the expressions defined in Associative Container, the following expressions must be valid.
| Name | Expression | Return type |
|---|---|---|
| Default constructor | X() X a; | |
| Constructor with bucket count | X(n) X a(n); | |
| Constructor with hash function | X(n, h) X a(n, h); | |
| Constructor with key equal | X(n, h, k) X a(n, h, k); | |
| Hash function | a.hash_funct() | X::hasher |
| Key equal | a.key_eq() | X::key_equal |
| Erase key | a.erase(k) | size_type |
| Erase element | a.erase(p) | void |
| Erase range | a.erase(p, q) | void |
| Find | a.find(k) | |
| Count | a.count(k) | size_type |
