This class template implements a value‐semantic container type holding an unordered multiset of values (of template parameter type KEY).
Synopsis
Declared in <bslstl_unorderedmultiset.h>
template<
class KEY,
class HASH = bsl::hash<KEY>,
class EQUAL = bsl::equal_to<KEY>,
class ALLOCATOR = bsl::allocator<KEY>>
class unordered_multiset;
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 |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assignment operators |
|
|
|
Return the bucket index for the specified |
|
Return the number of buckets in the array of buckets maintained by this unordered multiset. |
|
Return the number of elements in the bucket at |
|
|
|
|
|
Remove all entries from this unordered multiset. Note that the container is empty after this call, but allocated memory may be retained for future use. |
|
Return whether this unordered multiset contains |
|
Return the number of elements equivalent to |
|
Emplace a newly constructed element into this unordered multiset. |
|
Emplace a newly constructed element near |
|
Return |
|
|
|
|
|
|
|
|
|
Return (a copy of) the allocator used for memory allocation by this unordered multiset. |
|
Return (a copy of) the hash unary functor used by this unordered multiset to generate a hash value (of type |
|
|
|
Insert each element from the specified |
|
Return (a copy of) the key‐equality 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 size of this container. |
|
Rehash this container to at least |
|
Reserve capacity for at least |
|
Return the number of elements in this unordered multiset. |
|
Exchange the contents of this object with those of |
|
Nested trait declaration for |
Deduction Guides
Name |
Description |
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
|
CTAD guide: deduce |
Friends
Name |
Description |
Return |
Non-Member Functions
Name |
Description |
Erase all elements in |
|
Return |
|
Exchange the values of the specified |
Created with MrDocs