Create an unordered map from values with bucket count and allocator.

Synopsis

Declared in <bslstl_unorderedmap.h>

template<>
requires bsl::IsStdAllocator_v<ALLOCATOR>
unordered_map(
    std::initializer_list<value_type> values,
    size_type initialNumBuckets,
    ALLOCATOR const& basicAllocator);

Description

Same as the preceding overload.

Parameters

Name

Description

values

initializer list of values to insert

initialNumBuckets

initial number of buckets

basicAllocator

allocator used to supply memory

Created with MrDocs