[#BloombergLP-bslstl-HashTable-09-2constructor-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable&lt;UnorderedMapKeyConfiguration&lt;basic&lowbar;string&lt;char&gt; const, pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;, TransparentHash, TransparentEqualTo, allocator&lt;pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;&gt;]::HashTable
:relfileprefix: ../../../
:mrdocs:

Create a hash&hyphen;table having the same value (and `maxLoadFactor`) as the specified `original` object&period; Use a copy of `original&period;hasher()` and a copy of `original&period;comparator()` to organize elements in this hash&hyphen;table&period; Use the allocator returned by &apos;bsl&colon;&colon;allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon; select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction(original&period;allocator())&apos; to allocate memory&period; This method requires that the `ValueType` defined by the (template parameter) type `KEY&lowbar;CONFIG` be `copy&hyphen;insertable` into this hash&hyphen;table (see &apos;&lcub;Requirements on `KEY&lowbar;CONFIG`&rcub;)&period; Note that this hash&hyphen;table may have fewer buckets than `original`, and a correspondingly higher `loadFactor`, so long as `maxLoadFactor` is not exceeded&period; Also note that the created hash table may have a different `numBuckets` than `original`, and a correspondingly different `loadFactor`, as long as `maxLoadFactor` is not exceeded&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
HashTable(xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable&lt;UnorderedMapKeyConfiguration&lt;basic&lowbar;string&lt;char&gt; const, pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;, TransparentHash, TransparentEqualTo, allocator&lt;pair&lt;basic&lowbar;string&lt;char&gt; const, Json&gt;&gt;&gt;] const& original);
----


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