Deduce the template parameters KEY and VALUE from the value_type of the iterators supplied to the constructor of map. This deduction guide does not participate unless the supplied allocator is convertible to bsl::allocator<bsl::pair<const KEY, VALUE>>.

Synopsis

Declared in <bslstl_map.h>

template<
    class INPUT_ITERATOR,
    class ALLOC,
    class KEY = BloombergLP::bslstl::IteratorUtil::IterKey_t<INPUT_ITERATOR>,
    class VALUE = BloombergLP::bslstl::IteratorUtil::IterMapped_t<INPUT_ITERATOR>,
    class DEFAULT_ALLOCATOR = bsl::allocator<pair<KEY const, VALUE>>>
requires bsl::is_convertible_v<ALLOC *, DEFAULT_ALLOCATOR>
map<KEY, VALUE>(
    INPUT_ITERATOR,
    INPUT_ITERATOR,
    ALLOC*) → map<KEY, VALUE>;

Created with MrDocs