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