[#bsl-unordered_multiset-06c-insert-09]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset]::insert
:relfileprefix: ../../
:mrdocs:

`insert` overloads

== Synopses

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

Move&hyphen;insert `value` into this unordered multiset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/iterator.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::iterator]
xref:bsl/unordered_multiset-06c/insert-08.adoc[insert](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;value&lowbar;type&gt;] value);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-08.adoc[_» more&period;&period;&period;_]#

Insert each element from the `values` initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/unordered_multiset-06c/insert-0ef.adoc[insert](std::initializer&lowbar;list&lt;KEY&gt; values);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-0ef.adoc[_» more&period;&period;&period;_]#

Insert a copy of `value` into this unordered multiset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/iterator.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::iterator]
xref:bsl/unordered_multiset-06c/insert-03.adoc[insert](xref:bsl/unordered_multiset-06c/value_type.adoc[value&lowbar;type] const& value);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-03.adoc[_» more&period;&period;&period;_]#

Move&hyphen;insert `value` near `hint`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/iterator.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::iterator]
xref:bsl/unordered_multiset-06c/insert-0a.adoc[insert](
    xref:bsl/unordered_multiset-06c/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;value&lowbar;type&gt;] value);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-0a.adoc[_» more&period;&period;&period;_]#

Insert a copy of `value` near `hint`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/iterator.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;::iterator]
xref:bsl/unordered_multiset-06c/insert-0b.adoc[insert](
    xref:bsl/unordered_multiset-06c/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:bsl/unordered_multiset-06c/value_type.adoc[value&lowbar;type] const& value);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-0b.adoc[_» more&period;&period;&period;_]#

Insert each element in the iterator range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
void
xref:bsl/unordered_multiset-06c/insert-0e8.adoc[insert](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last);
----

[.small]#xref:bsl/unordered_multiset-06c/insert-0e8.adoc[_» more&period;&period;&period;_]#

== Return Value

iterator to the newly inserted element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| element to move&hyphen;insert
| *values*
| initializer list of keys to insert
| *hint*
| iterator hint for the insertion position
| *first*
| beginning of the range of values to insert
| *last*
| end of the range of values to insert (one past last)
|===


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