Create an unordered map by moving from original using basicAllocator.

Synopsis

Declared in <bslstl_unorderedmap.h>

unordered_map(
    BloombergLP::bslmf::MovableRef<unordered_map> original,
    ALLOCATOR const& basicAllocator);

Description

Create an unordered map having the same value, hasher, key‐equality comparator, and max_load_factor as the specified original. Use the specified basicAllocator to supply memory. This method requires that the (template parameter) type value_type be move‐insertable into this unordered_map (see {Requirements on value_type}). Note that a bslma::Allocator * can be supplied for basicAllocator if the (template parameter) ALLOCATOR type is bsl::allocator (the default).

Parameters

Name

Description

original

unordered map to copy or move from

basicAllocator

allocator used to supply memory

Created with MrDocs