Deduce KEY from an initializer_list when an allocator pointer is given.

Synopsis

Declared in <bslstl_set.h>

template<
    class KEY,
    class ALLOC,
    class DEFAULT_ALLOCATOR = bsl::allocator<KEY>>
requires bsl::is_convertible_v<ALLOC *, DEFAULT_ALLOCATOR>
set<KEY>(
    std::initializer_list<KEY>,
    ALLOC*) → set<KEY>;

Description

This deduction guide does not participate unless the specified ALLOC is convertible to bsl::allocator<KEY>.

Created with MrDocs