This class implements the logic for a striped hash multimap with logic that supports a (unique) map as a special case.
Synopsis
Declared in <bdlcc_stripedunorderedcontainerimpl.h>
template<
class KEY,
class VALUE,
class HASH = bsl::hash<KEY>,
class EQUAL = bsl::equal_to<KEY>>
class StripedUnorderedContainerImpl;
Type Aliases
Name |
Description |
Alias for a predicate that selects values to erase. |
|
Value type of a bulk insert entry. |
|
Node in a bucket. |
|
Alias for a read‐only visitor over element values. |
|
Alias for a visitor that may modify element values. |
Enums
Name |
Description |
Default sizing constants for this container. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this hash map. This method is not thread‐safe. |
Return the allocator used by this hash map to supply memory. |
|
Return the number of buckets in this hash map. |
|
Return the bucket index where elements with |
|
Return the number of elements in the bucket at |
|
Return |
|
Remove all elements from this striped hash map. If rehash is in progress, block until it completes. |
|
Prevent rehash until the |
|
Return |
|
Allow rehashing to resume when the load factor is exceeded. |
|
Return (a copy of) the key‐equality functor used by this hash map that returns |
|
Erase all elements matching the specified |
|
Erase elements matching |
|
Erase all elements whose keys fall in |
|
Erase the first element for each key in |
|
Erase the first element found with the specified |
|
Erase the first element with |
|
|
|
Return (a copy of) the unary hash functor used by this hash map to generate a hash value (of type |
|
|
|
Insert key‐value pairs from the range |
|
Insert or update unique keys from the range |
|
|
|
Return |
|
Return the current size divided by the number of buckets. |
|
Return the maximum load factor allowed for this hash map. |
|
Return the number of stripes in the hash. |
|
Recreate this hash map with at least |
|
Invoke |
|
Invoke |
|
Set every element with |
|
|
|
Return the current number of elements in this hash. |
|
Update each element with |
|
|
|
|
Friends
Name |
Description |
|
A mutex + support info; padded to cacheline size, one per stripe |
|
Test utility exposing stripe lock/unlock for the test driver. |
Created with MrDocs