[#bsl-multiset-03-insert-0a] = xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset]::insert :relfileprefix: ../../ :mrdocs: Insert the specified `value` into this multiset (in amortized constant time if the specified `hint` is a valid immediate successor to `value`). `value` is left in a valid but unspecified state. Return an iterator referring to the newly inserted `value_type` object in this multiset that is equivalent to `value`. If `hint` is not a valid immediate successor to `value`, this operation has `O[log(N)]` complexity, where `N` is the size of this multiset. This method requires that the (template parameter) type `KEY` be `move‐insertable` into this multiset (see {Requirements on `KEY`}). The behavior is undefined unless `hint` is an iterator in the range `[begin() .. end()]` (both endpoints included). == Synopsis Declared in `<bslstl_multiset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/multiset-03/iterator.adoc[multiset<KEY, COMPARATOR, ALLOCATOR>::iterator] insert( xref:bsl/multiset-03/const_iterator.adoc[const_iterator] hint, xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<value_type>] value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#