Constructors
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...
| 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 |