BloombergLP::bdlc::FlatHashMap::FlatHashMap

Create an empty map with at least the specified capacity and hash.

Synopsis

Declared in <bdlc_flathashmap.h>

FlatHashMap(
    std::size_t capacity,
    HASH const& hash,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
capacityminimum initial capacity of the underlying array
hashhash functor used for keys
basicAllocatorallocator used to supply memory