Constructors
Synopses
Declared in <bslstl_hashtable.h>
Create a hash table having the same value as 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.
Create an empty hash table with the specified policies and capacity.
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