BloombergLP::bdlc::FlatHashMap::FlatHashMap

Create an empty map with the specified capacity, hash, and equal.

Synopsis

Declared in <bdlc_flathashmap.h>

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

Parameters

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