bsl::unordered_set::unordered_set

Create an unordered set from the specified values initializer list.

Synopsis

Declared in <bslstl_unorderedset.h>

template<class = void>
requires bsl::IsStdAllocator<ALLOCATOR>::value
unordered_set(
    std::initializer_list<KEY> values,
    size_type initialNumBuckets,
    ALLOCATOR const& basicAllocator);

Description

Create an unordered set from an initializer list and bucket count.

Same as the preceding overload, using the specified allocator.

Parameters

NameDescription
valuesinitializer list of keys to insert
initialNumBucketsinitial number of buckets
basicAllocatorallocator used to supply memory