[#bsl-list-054-insert-0c]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::insert
:relfileprefix: ../../
:mrdocs:

Insert at the specified `dstPosition` in this list the specified move&hyphen;insertable `value`, and return an iterator providing modifiable access to the newly inserted element&period; `value` is left in a valid but unspecified state&period; If an exception is thrown (other than by the copy constructor, move constructor, assignment operator, or move assignment operator of `value&lowbar;type`), this method has no effect&period; This method requires that the (template parameter) `VALUE` be `move&hyphen;insertable` into this list (see &lcub;Requirements on `VALUE`&rcub;)&period; The behavior is undefined unless `dstPosition` is an iterator in the range `&lsqb;cbegin() &period;&period; cend()&rsqb;` (both endpoints included)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/list-054/iterator.adoc[list&lt;VALUE, ALLOCATOR&gt;::iterator]
insert(
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;value&lowbar;type&gt;] value);
----


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