bsl::set<KEY, COMPARATOR, ALLOCATOR>

Deduce KEY, COMPARATOR, and ALLOCATOR from an iterator-range constructor.

Synopsis

Declared in <bslstl_set.h>

template<
    class INPUT_ITERATOR,
    class KEY = bsl::iterator_traits<INPUT_ITERATOR>::value_type,
    class COMPARATOR = std::less<KEY>,
    class ALLOCATOR = bsl::allocator<KEY>>
requires !bsl::IsStdAllocator_v<COMPARATOR> && bsl::IsStdAllocator_v<ALLOCATOR>
set<KEY, COMPARATOR, ALLOCATOR>(
    INPUT_ITERATOR,
    INPUT_ITERATOR,
    COMPARATOR,
    ALLOCATOR) -> set<KEY, COMPARATOR, ALLOCATOR>;

Description

This guide does not participate unless the supplied (or defaulted) ALLOCATOR meets the requirements of a standard allocator.