Container-based version of the <algorithm> std::partition() function to rearrange all elements in a container in such a way that all elements for which pred returns true precede all those for which it returns false, returning an iterator to the first element of the second group.
Declared in <absl/algorithm/container.h>
template<
typename C,
typename Pred>
constexpr
/* implementation-defined */
c_partition(
C& c,
Pred&& pred);
An iterator to the first element of the second group.
| Name | Description |
|---|---|
| c | The container to partition. |
| pred | The predicate used to partition the elements. |