[#bsl-list-054-merge-076]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::merge
:relfileprefix: ../../
:mrdocs:

`merge` overloads

== Synopses

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

See the first `merge` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/merge-0a.adoc[merge](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] other);
----

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

Merge the specified sorted `other` list into this sorted list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/list-054/merge-04.adoc[merge](xref:bsl/list-054.adoc[list]& other);
----

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

See the first comparator `merge` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class COMPARE&gt;
void
xref:bsl/list-054/merge-072.adoc[merge](
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] other,
    COMPARE comparator);
----

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

Merge sorted `other` into this list using the specified `comparator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class COMPARE&gt;
void
xref:bsl/list-054/merge-09.adoc[merge](
    xref:bsl/list-054.adoc[list]& other,
    COMPARE comparator);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| sorted list to merge into this list
| *comparator*
| binary predicate used to order elements
|===


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