[#bsl-list-054-splice-0e] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::splice :relfileprefix: ../../ :mrdocs: Splice the single element at `srcNode` from `src` into this list. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void splice( xref:bsl/list-054/const_iterator.adoc[const_iterator] dstPosition, xref:bsl/list-054.adoc[list]& src, xref:bsl/list-054/const_iterator.adoc[const_iterator] srcNode); ---- == Description The element is inserted at `dstPosition`. The behavior is undefined unless `srcNode` refers to a valid element in `src`, this list and `src` use the same allocator, and `dstPosition` is in the range `[begin() .. end()]` (note both endpoints included). Note that `src` and `*this` may be the same list, in which case the element is moved to a (possibly) new position in the list. == Parameters [cols="1,4"] |=== | Name| Description | *dstPosition* | location before which the element is inserted | *src* | list containing the element to move | *srcNode* | iterator to the element to move |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#