BloombergLP::bdlcc::StripedUnorderedContainerImpl::StripedUnorderedContainerImpl

Create an empty striped hash map with the specified maxLoadFactor.

Synopsis

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

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);

Description

The behavior is undefined unless maxLoadFactor > 0. Optionally specify numInitialBuckets and numStripes which define the minimum number of buckets and the (fixed) number of stripes in this map. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The hash map has rehash enabled.

Parameters

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