Create an unordered multiset from the specified values initializer list.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

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

Parameters

Name

Description

values

initializer list of keys to insert

initialNumBuckets

the initial number of buckets

hashFunction

the hash function

keyEqual

the key‐equality functor

basicAllocator

the allocator used to supply memory

Created with MrDocs