Deduce the template parameters KEY and VALUE from the value_type of the initializer_list supplied to the constructor of unordered_map. Deduce the template parameters HASH and ALLOCATOR from the other parameters supplied to the constructor of unordered_map. This deduction guide does not participate unless the supplied HASH is invokable with a KEY, and the supplied allocator meets the requirements of a standard allocator.
Synopsis
Declared in <bslstl_unorderedmap.h>
template<
class KEY,
class VALUE,
class HASH,
class ALLOCATOR>
requires std::is_invocable_v<HASH, const KEY &> && bsl::IsStdAllocator_v<ALLOCATOR>
unordered_map<KEY, VALUE, HASH, bsl::equal_to<KEY>, ALLOCATOR>(
std::initializer_list<bsl::pair<KEY const, VALUE>>,
bsl::allocator_traits<ALLOCATOR>::size_type,
HASH,
ALLOCATOR) → unordered_map<KEY, VALUE, HASH, bsl::equal_to<KEY>, ALLOCATOR>;
Created with MrDocs