[#BloombergLP-bdlc-HashTable-2constructor-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/HashTable.adoc[HashTable]::HashTable :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlc_hashtable.h>` Create a double‐hash table using the specified `capacityHint`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `0 != capacityHint`. Note that `capacityHint` can be either a positive integer or a negative integer. If `capacityHint` is positive, then the capacity of the hash table will be the first available prime number larger than, or equal to, `capacityHint`. Otherwise, the capacity of the hash table will be the first available prime number smaller than, or equal to, `capacityHint`. Also note that `HASH1` will be used as the first hash function, and `HASH2` will be used as the second hash function. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/HashTable/2constructor-0c.adoc[HashTable]( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] capacityHint, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/HashTable/2constructor-0c.adoc[_» more..._]# Create a double‐hash table with the specified `capacityHint`. Use the specified `hashFunctor1` as the first hash function; use the specified `hashFunctor2` as the second hash function. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `0 != capacityHint`, and `hashFunction1` and `hashFunction2` are valid. Note that `capacityHint` can be either a positive integer or a negative integer. If `capacityHint` is positive, then the capacity of the hash table will be the first available prime number larger than, or equal to, `capacityHint`. Otherwise, the capacity of the hash table will be the first available prime number smaller than, or equal to, `capacityHint`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/HashTable/2constructor-04.adoc[HashTable]( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] capacityHint, HASH1 const& hashFunctor1, HASH2 const& hashFunctor2, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlc/HashTable/2constructor-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#