Deduce the template parameters KEY and VALUE from the value_type of the iterators supplied to the constructor of unordered_map. Deduce the template parameters HASH, EQUAL and ALLOCATOR from the other parameters passed to the constructor of unordered_map. This deduction guide does not participate unless: (1) the supplied HASH is invokable with a KEY, (2) the supplied EQUAL is invokable with two `KEY`s, and (3) the supplied allocator meets the requirements of a standard allocator.
Synopsis
Declared in <bslstl_unorderedmap.h>
template<
class INPUT_ITERATOR,
class KEY = BloombergLP::bslstl::IteratorUtil::IterKey_t<INPUT_ITERATOR>,
class VALUE = BloombergLP::bslstl::IteratorUtil::IterMapped_t<INPUT_ITERATOR>,
class HASH = bsl::hash<KEY>,
class EQUAL = bsl::equal_to<KEY>,
class ALLOCATOR = bsl::allocator<pair<KEY const, VALUE>>>
requires std::is_invocable_v<HASH, const KEY &> && std::is_invocable_v<EQUAL, const KEY &, const KEY &> && bsl::IsStdAllocator_v<ALLOCATOR>
unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>(
INPUT_ITERATOR,
INPUT_ITERATOR,
bsl::allocator_traits<ALLOCATOR>::size_type,
HASH,
EQUAL,
ALLOCATOR) → unordered_map<KEY, VALUE, HASH, EQUAL, ALLOCATOR>;
Created with MrDocs