[#BloombergLP-bdlc-FlatHashTable-2constructor-07b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::FlatHashTable
:relfileprefix: ../../../
:mrdocs:

Create a table having the same value, hasher, and key&hyphen;equality comparator as the specified `original` object by moving the contents of `original` to the new table, and using the specified `basicAllocator` to supply memory&period; Use a copy of `original&period;hash&lowbar;function()` to generate hash values for the entries contained in this table&period; Use a copy of `original&period;key&lowbar;eq()` to verify that the keys of two entries are equal&period; This method requires that the (template parameter) type `ENTRY` be `move&hyphen;insertable` into this `FlatHashTable`&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; If `original` and the newly created object have the same allocator then the value of `original` becomes unspecified but valid, and no exceptions will be thrown&semi; otherwise `original` is unchanged (and an exception may be thrown)&period;

== Synopsis

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

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


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