[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-2constructor-072] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::StripedUnorderedContainerImpl :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` Create an empty `StripedUnorderedContainerImpl` object, a fully thread‐safe hash map where access is divided into "stripes" (a group of buckets protected by a reader‐write mutex). 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/2constructor-077.adoc[StripedUnorderedContainerImpl]( std::size_t numInitialBuckets = k_DEFAULT_NUM_BUCKETS, std::size_t numStripes = k_DEFAULT_NUM_STRIPES, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/2constructor-077.adoc[_» more..._]# Create an empty `StripedUnorderedContainerImpl` object, a fully thread‐safe hash map where access is divided into "stripes" (a group of buckets protected by a reader‐write mutex). Specify `maxLoadFactor` which defines the maximum ratio of elements to buckets. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/2constructor-0f.adoc[StripedUnorderedContainerImpl]( xref:BloombergLP/bdlcc/StripedUnorderedContainerImplMaxLoadFactorFlag.adoc[StripedUnorderedContainerImplMaxLoadFactorFlag], float maxLoadFactor = 1.0, std::size_t numInitialBuckets = k_DEFAULT_NUM_BUCKETS, std::size_t numStripes = k_DEFAULT_NUM_STRIPES, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/2constructor-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#