Same as the preceding overload, using the specified allocator.
Declared in <bslstl_unorderedmultiset.h>
template<
class = void,
class = void>
requires std::is_invocable_v<HASH, const KEY &> && bsl::IsStdAllocator<ALLOCATOR>::value
unordered_multiset(
std::initializer_list<KEY> values,
size_type initialNumBuckets,
HASH const& hashFunction,
ALLOCATOR const& basicAllocator);
| Name | Description |
|---|---|
| values | initializer list of keys to insert |
| initialNumBuckets | the initial number of buckets |
| hashFunction | the hash function |
| basicAllocator | the allocator used to supply memory |