Create an unordered map from values with hash and allocator.

Synopsis

Declared in <bslstl_unorderedmap.h>

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

Description

Same as the preceding overload.

Parameters

Name

Description

values

initializer list of values to insert

initialNumBuckets

initial number of buckets

hashFunction

hash functor

basicAllocator

allocator used to supply memory

Created with MrDocs