Create an unordered map from values with hash and allocator.
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);
Same as the preceding overload.
| Name | Description |
|---|---|
| values | initializer list of values to insert |
| initialNumBuckets | initial number of buckets |
| hashFunction | hash functor |
| basicAllocator | allocator used to supply memory |