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

Create a `FlatHashSet` object having the same value, hasher, and equality comparator as the specified `original` object, using the specified `basicAllocator` to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The allocator of `original` remains unchanged&period; If `original` and the newly created object have the same allocator then the contents of `original` are moved (in constant time) to this object, `original` is left in a (valid) unspecified state, and no exceptions will be thrown&semi; otherwise `original` is unchanged (and an exception may be thrown)&period;

== Synopsis

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

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


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