BloombergLP::bdlc::FlatHashTable::FlatHashTable

Constructors

Synopses

Declared in <bdlc_flathashtable.h>

Create a table by moving from the specified original.

explicit
FlatHashTable(bslmf::MovableRef<FlatHashTable> original);
» more...

Create a table by moving from original using basicAllocator.

FlatHashTable(
    bslmf::MovableRef<FlatHashTable> original,
    bslma::Allocator* basicAllocator);
» more...

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

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

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);
» more...

Parameters

NameDescription
originaltable to move from
basicAllocatorallocator used to supply memory
capacityminimum capacity for the new table
hashhash functor used for keys
equalkey-equality predicate