[#absl-c_partial_sort-05]
= xref:absl.adoc[absl]::c&lowbar;partial&lowbar;sort
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;partial&lowbar;sort()` function to rearrange elements within a container such that elements before `middle` are sorted in ascending order&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename RandomAccessContainer&gt;
constexpr
void
c&lowbar;partial&lowbar;sort(
    RandomAccessContainer& sequence,
    &sol;&ast; implementation-defined &ast;&sol; middle);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sequence*
| The container to partially sort&period;
| *middle*
| An iterator to the end of the range to be sorted&period;
|===


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