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

`splice` overloads

== Synopses

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

See the first `splice` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-06.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] src);
----

[.small]#xref:bsl/list-054/splice-06.adoc[_» more&period;&period;&period;_]#

Remove all elements of the specified `src` list and insert them, in the same order, in this list at the specified `dstPosition`&period; The behavior is undefined unless `src` is not this list, this list and `src` use the same allocator, and `dstPosition` is in the range `&lsqb;begin() &period;&period; end()&rsqb;` (note both endpoints included)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-08.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:bsl/list-054.adoc[list]& src);
----

[.small]#xref:bsl/list-054/splice-08.adoc[_» more&period;&period;&period;_]#

See the first `splice` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-01.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] src,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] srcNode);
----

[.small]#xref:bsl/list-054/splice-01.adoc[_» more&period;&period;&period;_]#

Remove the single element at the specified `srcNode` from the specified `src` list, and insert it at the specified `dstPosition` in this list&period; 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 `&lsqb;begin() &period;&period; end()&rsqb;` (note both endpoints included)&period; Note that `src` and `&ast;this` may be the same list, in which case the element is moved to a (possibly) new position in the list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-0e.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:bsl/list-054.adoc[list]& src,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] srcNode);
----

[.small]#xref:bsl/list-054/splice-0e.adoc[_» more&period;&period;&period;_]#

See the first `splice` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-0a3.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] src,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] first,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] last);
----

[.small]#xref:bsl/list-054/splice-0a3.adoc[_» more&period;&period;&period;_]#

Remove the elements in the specified range `&lsqb;first &period;&period; last)&rsqb;` from the specified `src` list, and insert them, in the same order, at the specified `dstPosition` in this list&period; The behavior is undefined unless `&lsqb;first &period;&period; last)&rsqb;` represents a range of valid elements in `src`, `dstPosition` is not in the range `&lsqb;first &period;&period; last)&rsqb;`, this list and `src` use the same allocator, and `dstPosition` is in the range `&lsqb;begin() &period;&period; end()&rsqb;` (note both endpoints included)&period; Note that `src` and `&ast;this` may be the same list, in which case an entire sequence of nodes is moved to a (possibly) new position in this list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/splice-03.adoc[splice](
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] dstPosition,
    xref:bsl/list-054.adoc[list]& src,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] first,
    xref:bsl/list-054/const_iterator.adoc[const&lowbar;iterator] last);
----

[.small]#xref:bsl/list-054/splice-03.adoc[_» more&period;&period;&period;_]#


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