Container-based version of the <algorithm> std::is_partitioned() function to test whether all elements in the container for which pred returns true precede those for which pred is false.
Declared in <absl/algorithm/container.h>
template<
typename C,
typename Pred>
constexpr
bool
c_is_partitioned(
C const& c,
Pred&& pred);
true if c is partitioned with respect to pred, otherwise false.
| Name | Description |
|---|---|
| c | The container to test. |
| pred | The predicate used to partition the elements. |