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

Insert each element of `values` whose key is not already present&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
insert(std::initializer&lowbar;list&lt;value&lowbar;type&gt; values);
----

== Description

Create a `value&lowbar;type` object for each element in the specified `values`&period; Insert into this unordered map each such object whose key is not already contained&period; Note that this method requires that the (template parameter) types `KEY` and `VALUE` both be `copy&hyphen;constructible` (see &lcub;Requirements on `value&lowbar;type`&rcub;)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *values*
| initializer list of values to insert
|===


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