Create an unordered set from the specified values initializer list.
Synopsis
Declared in <bslstl_unorderedset.h>
template<
class = void,
class = void>
requires std::is_invocable_v<HASH, const KEY &> && bsl::IsStdAllocator<ALLOCATOR>::value
unordered_set(
std::initializer_list<KEY> values,
size_type initialNumBuckets,
HASH const& hashFunction,
ALLOCATOR const& basicAllocator);
Description
Same as the preceding overload, using the specified allocator.
Parameters
Name |
Description |
values |
initializer list of values |
initialNumBuckets |
initial number of buckets |
hashFunction |
hash function |
basicAllocator |
allocator used to supply memory |
Created with MrDocs