[#bsl-multimap-0ae-insert-0e]
= xref:bsl.adoc[bsl]::xref:bsl/multimap-0ae.adoc[multimap]::insert
:relfileprefix: ../../
:mrdocs:

Insert a copy of `value` into this multimap&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/multimap-0ae/iterator.adoc[multimap&lt;KEY, VALUE, COMPARATOR, ALLOCATOR&gt;::iterator]
insert(xref:bsl/multimap-0ae/value_type.adoc[value&lowbar;type] const& value);
----

== Description

Insert the specified `value` into this multimap&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) types `KEY` and `VALUE` both be `copy&hyphen;insertable` into this multimap (see &lcub;Requirements on `KEY` and `VALUE`&rcub;)&period;

== Return Value

iterator referring to the newly inserted element

== Parameters

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


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