Constructors
Synopses
Declared in <bdlcc_stripedunorderedcontainerimpl.h>
Create an empty striped thread‐safe hash map.
explicit
StripedUnorderedContainerImpl(
std::size_t numInitialBuckets = k_DEFAULT_NUM_BUCKETS,
std::size_t numStripes = k_DEFAULT_NUM_STRIPES,
bslma::Allocator* basicAllocator = 0);
Create an empty striped hash map with the specified maxLoadFactor.
explicit
StripedUnorderedContainerImpl(
StripedUnorderedContainerImplMaxLoadFactorFlag maxLoadFactorFlag,
float maxLoadFactor = 1.0,
std::size_t numInitialBuckets = k_DEFAULT_NUM_BUCKETS,
std::size_t numStripes = k_DEFAULT_NUM_STRIPES,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
numInitialBuckets |
initial number of buckets |
numStripes |
fixed number of stripes |
basicAllocator |
allocator used to supply memory |
maxLoadFactorFlag |
constructor tag selecting this overload |
maxLoadFactor |
maximum ratio of elements to buckets |
Created with MrDocs