[#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 `<bdlc_flathashtable.h>` Create a table by moving from the specified `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlc/FlatHashTable/2constructor-0d.adoc[FlatHashTable](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<FlatHashTable>] original); ---- [.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-0d.adoc[_» more..._]# Create a table by moving from `original` using `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/FlatHashTable/2constructor-07b.adoc[FlatHashTable]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<FlatHashTable>] original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bdlc/FlatHashTable/2constructor-07b.adoc[_» more..._]# Create a table having the same value as the specified `original`. [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..._]# Create an empty table with at least the specified `capacity`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/FlatHashTable/2constructor-07d.adoc[FlatHashTable]( std::size_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..._]# == 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‐equality predicate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#