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

Create an empty table having at least the specified `capacity`, that will use the specified `hash` to generate hash values for the keys of the entries contained in this table, and the specified `equal` to verify that the keys of the two entries are the same&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; If `0 &equals;&equals; capacity`, no memory is allocated and the object is defined to be in the &quot;zero&hyphen;capacity&quot; state&period;

== Synopsis

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

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


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