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

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

== Synopsis

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

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

== 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
|===


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