BloombergLP::bdlc::HashTable::HashTable

Constructors

Synopses

Declared in <bdlc_hashtable.h>

Create a double-hash table with the specified capacity hint.

explicit
HashTable(
    bsls::Types::Int64 capacityHint,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a double-hash table with custom hash functors.

HashTable(
    bsls::Types::Int64 capacityHint,
    HASH1 const& hashFunctor1,
    HASH2 const& hashFunctor2,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
capacityHinthint used to select the prime bucket capacity
basicAllocatorallocator used to supply memory
hashFunctor1first hash functor
hashFunctor2second hash functor