Unordered associative container mapping keys to values, allowing duplicates.
Synopsis
Declared in <bslstl_unorderedmultimap.h>
template<
class KEY,
class VALUE,
class HASH = bsl::hash<KEY>,
class EQUAL = bsl::equal_to<KEY>,
class ALLOCATOR = bsl::allocator<bsl::pair<KEY const, VALUE>>>
class unordered_multimap;
Description
This class template implements a value‐semantic container type holding a collection of (possibly equivalent) keys (of the template parameter type KEY), each mapped to their associated values (of another template parameter type VALUE).
This class: * supports a complete set of value‐semantic operations
-
except for BDEX serialization * is exception‐neutral (agnostic except for the
atmethod) * is alias‐safe * isconstthread‐safe For terminology see {`bsldoc_glossary`}.
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assignment operators |
|
|
|
|
|
Return the number of buckets in the array of buckets maintained by this unordered multimap. |
|
Return the number of elements in the bucket at |
|
|
|
|
|
Remove all entries from this unordered multimap. Note that this object will be empty after this call, but allocated memory may be retained for future use. |
|
Return |
|
Return the number of elements with a key equivalent to |
|
Emplace a newly constructed element into this container. |
|
Emplace a newly constructed element near |
|
Return |
|
|
|
Return an iterator pair covering elements with key equivalent to |
|
|
|
Return an iterator to the first element with key equivalent to |
|
Return (a copy of) the allocator used for memory allocation by this unordered multimap. |
|
Return (a copy of) the hash unary functor used by this unordered multimap to generate a hash value (of type |
|
|
|
Insert each element from the specified |
|
Return (a copy of) the key‐equivalence binary functor that returns |
|
Return the current load factor of this container. |
|
Return a theoretical upper bound on the number of buckets. |
|
|
|
Return a theoretical upper bound on the number of elements. |
|
Rehash this container to have at least |
|
Reserve capacity for at least |
|
Return the number of elements in this unordered multimap. |
|
Exchange the contents of this object with those of |
Deduction Guides
Name |
Description |
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from iterators with size and |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from a constructor taking a |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from a constructor taking a |
|
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments for an |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments for an |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments from an initializer‐list constructor. |
|
Deduce template arguments for an |
|
Deduce template arguments for an |
Friends
Name |
Description |
Return |
Non-Member Functions
Name |
Description |
Erase every element of |
|
Return |
|
Exchange the value of |
Created with MrDocs