Deduce KEY, VALUE, COMPARATOR, and ALLOCATOR from iterator‐pair construction.
Synopsis
Declared in <bslstl_multimap.h>
template<
class INPUT_ITERATOR,
class KEY = BloombergLP::bslstl::IteratorUtil::IterKey_t<INPUT_ITERATOR>,
class VALUE = BloombergLP::bslstl::IteratorUtil::IterMapped_t<INPUT_ITERATOR>,
class COMPARATOR = std::less<KEY>,
class ALLOCATOR = bsl::allocator<BloombergLP::bslstl::IteratorUtil::IterToAlloc_t<INPUT_ITERATOR>>>
requires !bsl::IsStdAllocator_v<COMPARATOR> && bsl::IsStdAllocator_v<ALLOCATOR>
multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>(
INPUT_ITERATOR,
INPUT_ITERATOR,
COMPARATOR,
ALLOCATOR) → multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>;
Description
Deduce the template parameters KEY and VALUE from the value_type of the iterators supplied to the constructor of multimap. Deduce the template parameters COMPARATOR and ALLOCATOR from the other parameters passed to the constructor. This deduction guide does not participate unless the supplied allocator meets the requirements of a standard allocator.
Created with MrDocs