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

Constructors

== Synopses

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

Copy&hyphen;construct a hash table from the specified source table&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hashtable/2constructor-05.adoc[hashtable](xref:bsl/hashtable.adoc[&lowbar;Self] const& &lowbar;&lowbar;ht);
----

[.small]#xref:bsl/hashtable/2constructor-05.adoc[_» more&period;&period;&period;_]#

Copy&hyphen;construct a hash table using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hashtable/2constructor-0c.adoc[hashtable](
    xref:bsl/hashtable.adoc[&lowbar;Self] const& &lowbar;&lowbar;ht,
    xref:bsl/hashtable/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hashtable/2constructor-0b.adoc[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());
----

[.small]#xref:bsl/hashtable/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Create a hash table with the specified functors and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hashtable/2constructor-0e.adoc[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,
    &lowbar;ExK const& &lowbar;&lowbar;ext,
    xref:bsl/hashtable/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a = allocator&lowbar;type());
----

[.small]#xref:bsl/hashtable/2constructor-0e.adoc[_» more&period;&period;&period;_]#


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