[#bsl-unordered_map-02b-2constructor-02a]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::unordered&lowbar;map
:relfileprefix: ../../
:mrdocs:

Create an empty unordered map, having a `max&lowbar;load&lowbar;factor` of 1&period;0, and then create a `value&lowbar;type` object for each element in the specified `values` list, ignoring those having a key that appears earlier in the sequence&period; Optionally specify a minimum `initialNumBuckets`, `hashFunction`, `keyEqual`, and `basicAllocator` as for the range constructor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
requires std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;HASH, const KEY &amp;&gt; &amp;&amp; std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;EQUAL, const KEY &amp;, const KEY &amp;&gt; &amp;&amp; bsl&colon;&colon;IsStdAllocator&lowbar;v&lt;ALLOCATOR&gt;
unordered&lowbar;map(
    std::initializer&lowbar;list&lt;value&lowbar;type&gt; values,
    xref:bsl/unordered_map-02b/size_type.adoc[size&lowbar;type] initialNumBuckets = 0,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----


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