bsl::unordered_set<KEY, HASH>

Deduce the template parameter KEY from the value_type of the iterators supplied to the constructor of unordered_set. Deduce the template parameter HASH 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 INPUT_ITERATOR,
    class KEY = BloombergLP::bslstl::IteratorUtil::IterVal_t<INPUT_ITERATOR>,
    class HASH,
    class ALLOC,
    class DEFAULT_ALLOCATOR = bsl::allocator<KEY>>
requires bsl::is_convertible_v<ALLOC *, DEFAULT_ALLOCATOR>
unordered_set<KEY, HASH>(
    INPUT_ITERATOR,
    INPUT_ITERATOR,
    bsl::allocator_traits<DEFAULT_ALLOCATOR>::size_type,
    HASH,
    ALLOC*) -> unordered_set<KEY, HASH>;