Constructors

Synopses

Declared in <bslstl_hashtable.h>

Create a hash table having the same value as original.

HashTable(HashTable const& original);

Create a hash table by moving from original.

Create an empty hash table.

explicit
HashTable(ALLOCATOR const& basicAllocator = ALLOCATOR());

Create a hash table by moving from original using basicAllocator.

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

Create a hash table copied from original using basicAllocator.

HashTable(
    HashTable const& original,
    ALLOCATOR const& basicAllocator);

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());

Parameters

Name

Description

original

hash table to copy

basicAllocator

allocator used to supply memory

hash

hash functor used to organize elements

compare

key‐equality comparator

initialNumBuckets

minimum initial number of buckets

initialMaxLoadFactor

initial maximum load factor

Created with MrDocs