[#absl-c_partial_sort_copy-04] = xref:absl.adoc[absl]::c_partial_sort_copy :relfileprefix: ../ :mrdocs: Overload of `c_partial_sort_copy()` for performing a `comp` comparison other than the default `operator<`. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename RandomAccessContainer, typename LessThan> constexpr /* implementation-defined */ c_partial_sort_copy( C const& sequence, RandomAccessContainer& result, LessThan&& comp); ---- == Return Value An iterator to the end of the range written in `result`. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container whose elements to sort. | *result* | The destination container receiving the sorted elements. | *comp* | The comparison used to order the elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#