BloombergLP::bdlcc::StripedUnorderedContainerImpl::StripedUnorderedContainerImpl

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);
» more...

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);
» more...

Parameters

NameDescription
numInitialBucketsinitial number of buckets
numStripesfixed number of stripes
basicAllocatorallocator used to supply memory
maxLoadFactorFlagconstructor tag selecting this overload
maxLoadFactormaximum ratio of elements to buckets