bsl::unordered_multimap::unordered_multimap

Create a copy of original using basicAllocator.

Synopsis

Declared in <bslstl_unorderedmultimap.h>

unordered_multimap(
    unordered_multimap const& original,
    ALLOCATOR const& basicAllocator);

Description

Create an unordered multimap having the same value as the specified original object that uses the specified basicAllocator to supply memory. Use a copy of original.hash_function() to generate hash values for the keys contained in this unordered multimap. Use a copy of original.key_eq() to verify that two keys are equivalent. This method requires that the (template parameter) types KEY and VALUE both be copy-insertable into this unordered multimap (see {Requirements on KEY and VALUE}). Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) type ALLOCATOR is bsl::allocator (the default).

Parameters

NameDescription
originalunordered multimap to copy
basicAllocatorallocator used to supply memory