BloombergLP::bdlc::FlatHashMap::FlatHashMap

Create a map with the same value as the specified original object.

Synopsis

Declared in <bdlc_flathashmap.h>

FlatHashMap(
    FlatHashMap const& original,
    bslma::Allocator* basicAllocator = 0);

Description

Create a FlatHashMap object having the same value, hasher, and equality comparator as the specified original object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified or is 0, the currently installed default allocator is used.

Parameters

NameDescription
originalmap providing the initial value
basicAllocatorallocator used to supply memory