Create an unordered multimap from values with hash and allocator.

Synopsis

Declared in <bslstl_unorderedmultimap.h>

template<
    class = void,
    class = void>
requires std::is_invocable_v<HASH, const KEY &> && bsl::IsStdAllocator_v<ALLOCATOR>
unordered_multimap(
    std::initializer_list<value_type> values,
    size_type initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);

Parameters

Name

Description

values

initializer list of elements to insert

initialNumBuckets

minimum initial number of buckets

hashFunction

hash function for keys

basicAllocator

allocator used to supply memory

Created with MrDocs