[#BloombergLP-bslstl-HashTable-2constructor-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable.adoc[HashTable]::HashTable
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable/2constructor-00.adoc[HashTable](xref:BloombergLP/bslstl/HashTable.adoc[HashTable] const& original);
----

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a hash table by moving from `original`&period;


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

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-0cf.adoc[_» more&period;&period;&period;_]#

Create an empty hash table&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslstl/HashTable/2constructor-06.adoc[HashTable](ALLOCATOR const& basicAllocator = ALLOCATOR());
----

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-06.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable/2constructor-0c9b.adoc[HashTable](
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;HashTable&gt;] original,
    ALLOCATOR const& basicAllocator);
----

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-0c9b.adoc[_» more&period;&period;&period;_]#

Create a hash table copied from `original` using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable/2constructor-0c9e.adoc[HashTable](
    xref:BloombergLP/bslstl/HashTable.adoc[HashTable] const& original,
    ALLOCATOR const& basicAllocator);
----

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-0c9e.adoc[_» more&period;&period;&period;_]#

Create an empty hash table with the specified policies and capacity&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable/2constructor-09.adoc[HashTable](
    HASHER const& hash,
    COMPARATOR const& compare,
    xref:BloombergLP/bslstl/HashTable/SizeType.adoc[SizeType] initialNumBuckets,
    float initialMaxLoadFactor,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

[.small]#xref:BloombergLP/bslstl/HashTable/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| hash table to copy
| *basicAllocator*
| allocator used to supply memory
| *hash*
| hash functor used to organize elements
| *compare*
| key&hyphen;equality comparator
| *initialNumBuckets*
| minimum initial number of buckets
| *initialMaxLoadFactor*
| initial maximum load factor
|===


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