[#absl-c_merge-0e] = xref:absl.adoc[absl]::c_merge :relfileprefix: ../ :mrdocs: `c_merge` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::merge()` function to merge two sorted containers into a single sorted iterator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2, typename OutputIterator> constexpr OutputIterator xref:absl/c_merge-08.adoc[c_merge]( C1 const& c1, C2 const& c2, OutputIterator result); ---- [.small]#xref:absl/c_merge-08.adoc[_» more..._]# Overload of `c_merge()` for performing a `comp` comparison other than the default `operator<`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2, typename OutputIterator, typename LessThan> constexpr OutputIterator xref:absl/c_merge-0f.adoc[c_merge]( C1 const& c1, C2 const& c2, OutputIterator result, LessThan&& comp); ---- [.small]#xref:absl/c_merge-0f.adoc[_» more..._]# == Return Value An iterator to the end of the merged range in the output. == Parameters [cols="1,4"] |=== | Name| Description | *c1* | The first sorted container. | *c2* | The second sorted container. | *result* | The output iterator receiving the merged elements. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#