BloombergLP::bslstl::HashTable::HashTable

Constructors

Synopses

Declared in <bslstl_hashtable.h>

Create a hash table having the same value as original.

HashTable(HashTable const& original);
» more...

Create a hash table by moving from original.

HashTable(BloombergLP::bslmf::MovableRef<HashTable> original);
» more...

Create an empty hash table.

explicit
HashTable(ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a hash table by moving from original using basicAllocator.

HashTable(
    BloombergLP::bslmf::MovableRef<HashTable> original,
    ALLOCATOR const& basicAllocator);
» more...

Create a hash table copied from original using basicAllocator.

HashTable(
    HashTable const& original,
    ALLOCATOR const& basicAllocator);
» more...

Create an empty hash table with the specified policies and capacity.

HashTable(
    HASHER const& hash,
    COMPARATOR const& compare,
    SizeType initialNumBuckets,
    float initialMaxLoadFactor,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Parameters

NameDescription
originalhash table to copy
basicAllocatorallocator used to supply memory
hashhash functor used to organize elements
comparekey-equality comparator
initialNumBucketsminimum initial number of buckets
initialMaxLoadFactorinitial maximum load factor