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

Create a hash table by moving from `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
HashTable(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;HashTable&gt;] original);
----

== Description

Create a hash&hyphen;table having the same value (and `maxLoadFactor`) as the specified `original` object by moving (in constant time) the contents of `original` to the new hash&hyphen;table&period; Use a copy of `original&period;hasher()` and a copy of `original&period;comparator()` to organize elements in this hash&hyphen;table&period; The allocator associated with `original` is propagated for use in the newly created hash&hyphen;table&period; `original` is left in a valid but unspecified state&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| hash table to move from
|===


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