[#bsl-list-054-merge-076] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::merge :relfileprefix: ../../ :mrdocs: `merge` overloads == Synopses Declared in `<bslstl_list.h>` See the first `merge` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/list-054/merge-0a.adoc[merge](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<list>] other); ---- [.small]#xref:bsl/list-054/merge-0a.adoc[_» more..._]# Merge the specified sorted `other` list into this sorted list. This method has no effect if `other` is this list; otherwise, `other` is left empty. The behavior is undefined unless both `other` and this list are sorted in non‐decreasing order according to the ordering provided by `operator<`, and unless both `other` and this list use the same allocator. `operator<` must define a strict weak ordering per `value_type` (see {Comparators and Strict Weak Ordering}). [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..._]# See the first `merge` overload above. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class COMPARE> void xref:bsl/list-054/merge-072.adoc[merge]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<list>] other, COMPARE comparator); ---- [.small]#xref:bsl/list-054/merge-072.adoc[_» more..._]# Merge the specified sorted `other` list into this sorted list, using the specified binary `comparator` predicate to order elements. This method has no effect if `other` is this list; otherwise, `other` is left empty. The behavior is undefined unless both `other` and this list are sorted in non‐decreasing order according to the ordering provided by `comparator`, and unless both `other` and this list use the same allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class COMPARE> 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#