[#BloombergLP-bslstl-HashTable-06-2constructor-0c9e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable]::HashTable
:relfileprefix: ../../../
:mrdocs:

Create a hash&hyphen;table having the same value (and `maxLoadFactor`) as the specified `original` object that uses the specified `basicAllocator` to supply memory&period; Use a copy of `original&period;hasher()` and a copy of `original&period;comparator()` to organize elements in this hash&hyphen;table&period; This method requires that the `ValueType` defined by the (template parameter) type `KEY&lowbar;CONFIG` be `move&hyphen;insertable` into this hash&hyphen;table&period; Note that this hash&hyphen;table may have a different `numBuckets` than `original`, and a correspondingly different `loadFactor`, as long as `maxLoadFactor` is not exceeded&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
HashTable(
    xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable] const& original,
    ALLOCATOR const& basicAllocator);
----


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