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

Insert the specified `value` into this multimap (in amortized constant time if the specified `hint` is a valid immediate successor to the key of `value`)&period; Return an iterator referring to the newly inserted `value&lowbar;type` object&period; If `hint` is not a valid immediate successor to the key of `value`, this operation has `O&lsqb;log(N)&rsqb;` complexity, where `N` is the size of this multimap&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; The behavior is undefined unless `hint` is an iterator in the range `&lsqb;begin() &period;&period; end()&rsqb;` (both endpoints included)&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/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:bsl/multimap-0ae/value_type.adoc[value&lowbar;type] const& value);
----


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