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

Insert a copy of `value` into this multiset&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:bsl/multiset-03/value_type.adoc[value&lowbar;type] const& value);
----

== Description

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

== Return Value

iterator referring to the newly inserted element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| element to insert
|===


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