[#bsl-slist-merge-0e]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::merge
:relfileprefix: ../../
:mrdocs:

`merge` overloads

== Synopses

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

Merge the sorted list `&lowbar;&lowbar;x` into this sorted list&period;


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

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

Merge sorted `&lowbar;&lowbar;x` into this list ordered by `&lowbar;&lowbar;comp`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;StrictWeakOrdering&gt;
void
xref:bsl/slist/merge-0d.adoc[merge](
    xref:bsl/slist.adoc[slist&lt;&lowbar;Tp, &lowbar;Alloc&gt;]& &lowbar;&lowbar;x,
    &lowbar;StrictWeakOrdering &lowbar;&lowbar;comp);
----

[.small]#xref:bsl/slist/merge-0d.adoc[_» more&period;&period;&period;_]#


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