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

Constructors

== Synopses

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

Create a table by moving from the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlc/FlatHashTable/2constructor-0d.adoc[FlatHashTable](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;FlatHashTable&gt;] original);
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a table by moving from `original` using `basicAllocator`&period;


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

[.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-07b.adoc[_» more&period;&period;&period;_]#

Create a table having the same value as the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashTable/2constructor-0c.adoc[FlatHashTable](
    xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Create an empty table with at least the specified `capacity`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashTable/2constructor-07d.adoc[FlatHashTable](
    std::size&lowbar;t capacity,
    HASH const& hash,
    EQUAL const& equal,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-07d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| table to move from
| *basicAllocator*
| allocator used to supply memory
| *capacity*
| minimum capacity for the new table
| *hash*
| hash functor used for keys
| *equal*
| key&hyphen;equality predicate
|===


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