[#bsl-hashtable-2constructor-0b]
= xref:bsl.adoc[bsl]::xref:bsl/hashtable.adoc[hashtable]::hashtable
:relfileprefix: ../../
:mrdocs:

Create a hash table with the specified hasher, equality predicate, and allocator&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
hashtable(
    xref:bsl/hashtable/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    &lowbar;HF const& &lowbar;&lowbar;hf,
    &lowbar;EqK const& &lowbar;&lowbar;eql,
    xref:bsl/hashtable/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a = allocator&lowbar;type());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;n*
| minimum number of buckets to create
| *&lowbar;&lowbar;hf*
| hash functor
| *&lowbar;&lowbar;eql*
| key&hyphen;equality predicate
| *&lowbar;&lowbar;a*
| allocator used to supply memory
|===


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