[#BloombergLP-bdlc-HashTable-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/HashTable.adoc[HashTable]::HashTable
:relfileprefix: ../../../
:mrdocs:

Create a double&hyphen;hash table using the specified `capacityHint`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `0 !&equals; capacityHint`&period; Note that `capacityHint` can be either a positive integer or a negative integer&period; If `capacityHint` is positive, then the capacity of the hash table will be the first available prime number larger than, or equal to, `capacityHint`&period; Otherwise, the capacity of the hash table will be the first available prime number smaller than, or equal to, `capacityHint`&period; Also note that `HASH1` will be used as the first hash function, and `HASH2` will be used as the second hash function&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
HashTable(
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] capacityHint,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
