[#absl-c_next_permutation-0d]
= xref:absl.adoc[absl]::c&lowbar;next&lowbar;permutation
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;next&lowbar;permutation()` function to rearrange a container&apos;s elements into the next lexicographically greater permutation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename C&gt;
constexpr
bool
c&lowbar;next&lowbar;permutation(C& c);
----

== Return Value

`true` if a next permutation exists, `false` if the range was reset to the first permutation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container to rearrange&period;
|===


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