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

Name

Description

capacity

minimum initial capacity of the underlying array

hash

hash functor used for keys

equal

key‐equality predicate

basicAllocator

allocator used to supply memory

Created with MrDocs