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).
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: * 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 contained in the bucket at the specified |
|
|
|
|
|
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 |
|
|
|
Insert into this unordered multimap a newly created |
|
Insert into this unordered multimap a newly created |
|
Return |
|
|
|
|
|
|
|
|
|
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 into this unordered multimap the value of each |
|
Return (a copy of) the key‐equivalence binary functor that returns |
|
Return the current ratio between the |
|
Return a theoretical upper bound on the largest number of buckets that this container could possibly manage. Note that there is no guarantee that the unordered multimap can successfully grow to the returned size, or even close to that size without running out of resources. |
|
|
|
Return a theoretical upper bound on the largest number of elements that this unordered multimap could possibly hold. Note that there is no guarantee that the unordered multimap can successfully grow to the returned size, or even close to that size without running out of resources. |
|
Change the size of the array of buckets maintained by this container to the specified |
|
Increase the number of buckets of this unordered multimap to a quantity such that the ratio between the specified |
|
Return the number of elements in this unordered multimap. |
|
Exchange the contents of this object with those of |
Deduction Guides
Name |
Description |
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
of the iterators supplied to the constructor of |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
|
Deduce the template parameters |
Friends
Name |
Description |
Same as the related overload above for |
Non-Member Functions
Name |
Description |
Erase all the elements in the specified unordered_multimap |
|
Return |
|
Exchange the value, hasher, key‐equality functor, and |
Created with MrDocs