Constructors

Synopses

Declared in <bdlc_flathashtable.h>

Create a table by moving from the specified original.

Create a table by moving from original using basicAllocator.

Create a table having the same value as the specified original.

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

Create an empty table with at least the specified capacity.

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

Parameters

Name

Description

original

table to move from

basicAllocator

allocator used to supply memory

capacity

minimum capacity for the new table

hash

hash functor used for keys

equal

key‐equality predicate

Created with MrDocs