bsl::unordered_map::unordered_map

Create an unordered map from range with hash and allocator.

Synopsis

Declared in <bslstl_unorderedmap.h>

template<class RANGE>
unordered_map(
    std::from_range_t tag,
    RANGE&& range,
    size_type initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);

Description

Same as the preceding overload.

Parameters

NameDescription
tagdisambiguation tag for from-range construction
rangeinput range of values to insert
initialNumBucketsinitial number of buckets
hashFunctionhash functor
basicAllocatorallocator used to supply memory