Deduce KEY, COMPARATOR, and ALLOCATOR from iterator construction.

Synopsis

Declared in <bslstl_multiset.h>

template<
    class INPUT_ITERATOR,
    class KEY = BloombergLP::bslstl::IteratorUtil::IterVal_t<INPUT_ITERATOR>,
    class COMPARATOR = std::less<KEY>,
    class ALLOCATOR = bsl::allocator<KEY>>
requires !bsl::IsStdAllocator_v<COMPARATOR> && bsl::IsStdAllocator_v<ALLOCATOR>
multiset<KEY, COMPARATOR, ALLOCATOR>(
    INPUT_ITERATOR,
    INPUT_ITERATOR,
    COMPARATOR,
    ALLOCATOR) → multiset<KEY, COMPARATOR, ALLOCATOR>;

Description

Deduce the template parameter KEY from the value_type of the iterators supplied to the constructor of multiset. Deduce the template parameters COMPARATOR and ALLOCATOR from the other parameters passed to the constructor. This guide does not participate unless the supplied (or defaulted) ALLOCATOR meets the requirements of a standard allocator.

Created with MrDocs