bsl::unordered_set<KEY, HASH, EQUAL>

Deduce the template parameter KEY from the value_type of the initializer_list supplied to the constructor of unordered_set. Deduce the template parameters HASH and EQUAL from the other parameters passed to the constructor. This deduction guide does not participate unless the supplied allocator is convertible to bsl::allocator<KEY>.

Synopsis

Declared in <bslstl_unorderedset.h>

template<
    class KEY,
    class HASH,
    class EQUAL,
    class ALLOC,
    class DEFAULT_ALLOCATOR = bsl::allocator<KEY>>
requires bsl::is_convertible_v<ALLOC *, DEFAULT_ALLOCATOR>
unordered_set<KEY, HASH, EQUAL>(
    std::initializer_list<KEY>,
    bsl::allocator_traits<DEFAULT_ALLOCATOR>::size_type,
    HASH,
    EQUAL,
    ALLOC*) -> unordered_set<KEY, HASH, EQUAL>;