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

Create an unordered map by moving from `original` using `basicAllocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unordered&lowbar;map(
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;unordered&lowbar;map&gt;] original,
    ALLOCATOR const& basicAllocator);
----

== Description

Create an unordered map having the same value, hasher, key&hyphen;equality comparator, and `max&lowbar;load&lowbar;factor` as the specified `original`&period; Use the specified `basicAllocator` to supply memory&period; This method requires that the (template parameter) type `value&lowbar;type` be `move&hyphen;insertable` into this `unordered&lowbar;map` (see &lcub;Requirements on `value&lowbar;type`&rcub;)&period; Note that a `bslma&colon;&colon;Allocator &ast;` can be supplied for `basicAllocator` if the (template parameter) `ALLOCATOR` type is `bsl&colon;&colon;allocator` (the default)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| unordered map to copy or move from
| *basicAllocator*
| allocator used to supply memory
|===


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