[#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;_]#

Splice all elements from `src` into this list at `dstPosition`&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 single&hyphen;element `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;_]#

Splice the single element at `srcNode` from `src` into this 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 range `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;_]#

Splice the range `&lsqb;first &period;&period; last)&rsqb;` from `src` into 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;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstPosition*
| location before which elements are inserted
| *src*
| list whose elements are moved into this list
| *srcNode*
| iterator to the element to move
| *first*
| start of the range to move
| *last*
| one past the end of the range to move
|===


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