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

Create a `value&lowbar;type` object for each iterator in the range starting at the specified `first` iterator and ending immediately before the specified `last` iterator, by converting from the object referred to by each iterator&period; Insert into this unordered map each such object whose key is not already contained&period; The (template parameter) type `INPUT&lowbar;ITERATOR` shall meet the requirements of an input iterator defined in the C&plus;&plus;11 standard &lsqb;24&period;2&period;3&rsqb;providing access to values of a type convertible to `value&lowbar;type`&period; The behavior is undefined unless `first` and `last` refer to a sequence of valid values where `first` is at a position at or before `last`&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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
void
insert(
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last);
----


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