[#bsl-multiset-03-insert-084]
= xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::insert
:relfileprefix: ../../
:mrdocs:

Insert the specified `value` into this multiset&period; If a range containing elements equivalent to `value` already exists in this multiset, insert `value` at the end of that range&period; `value` is left in a valid but unspecified state&period; Return an iterator referring to the newly inserted `value&lowbar;type` object in this multiset that is equivalent to `value`&period; This method requires that the (template parameter) type `KEY` be `move&hyphen;insertable` into this multiset (see &lcub;Requirements on `KEY`&rcub;)&period;

== Synopsis

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

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


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