Container‐based version of the <algorithm> std::next_permutation() function to rearrange a container's elements into the next lexicographically greater permutation.
Synopsis
Declared in <absl/algorithm/container.h>
template<typename C>
constexpr
bool
c_next_permutation(C& c);
Return Value
true if a next permutation exists, false if the range was reset to the first permutation.
Parameters
Name |
Description |
c |
The container to rearrange. |
Created with MrDocs