[#bsl-list-054-insert-00] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::insert :relfileprefix: ../../ :mrdocs: Insert the values from `values` at the specified `dstPosition`. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/list-054/iterator.adoc[list<VALUE, ALLOCATOR>::iterator] insert( xref:bsl/list-054/const_iterator.adoc[const_iterator] dstPosition, std::initializer_list<value_type> values); ---- == Description Return an iterator providing modifiable access to the first element in the newly inserted sequence of elements. This method requires that the (template parameter) `VALUE` be `copy‐insertable` into this list (see {Requirements on `VALUE`}). The behavior is undefined unless `dstPosition` is an iterator in the range `[cbegin() .. cend()]` (both endpoints included). == Return Value iterator to the first inserted element, or `dstPosition` if empty == Parameters [cols="1,4"] |=== | Name| Description | *dstPosition* | location before which elements are inserted | *values* | initializer list of values to insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#