[#bsl-slist-splice-01]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::splice
:relfileprefix: ../../
:mrdocs:

`splice` overloads

== Synopses

Declared in `&lt;bslstp&lowbar;slist&period;h&gt;`

Move all elements from `&lowbar;&lowbar;x` to before `&lowbar;&lowbar;pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/slist/splice-00.adoc[splice](
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos,
    xref:bsl/slist.adoc[&lowbar;Self]& &lowbar;&lowbar;x);
----

[.small]#xref:bsl/slist/splice-00.adoc[_» more&period;&period;&period;_]#

Move the element at `&lowbar;&lowbar;i` from `&lowbar;&lowbar;x` to before `&lowbar;&lowbar;pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/slist/splice-09.adoc[splice](
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos,
    xref:bsl/slist.adoc[&lowbar;Self]& &lowbar;&lowbar;x,
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;i);
----

[.small]#xref:bsl/slist/splice-09.adoc[_» more&period;&period;&period;_]#

Move the range &lsqb;`&lowbar;&lowbar;first`, `&lowbar;&lowbar;last`) from `&lowbar;&lowbar;x` to before `&lowbar;&lowbar;pos`&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/slist/splice-04.adoc[splice](
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos,
    xref:bsl/slist.adoc[&lowbar;Self]& &lowbar;&lowbar;x,
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;first,
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;last);
----

[.small]#xref:bsl/slist/splice-04.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;pos*
| position before which the elements are inserted
| *&lowbar;&lowbar;x*
| list whose elements are moved into this list
| *&lowbar;&lowbar;i*
| position of the element to move
| *&lowbar;&lowbar;first*
| beginning of the range to move
| *&lowbar;&lowbar;last*
| end of the range to move (exclusive)
|===


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