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.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename Pred>
constexpr
bool
c_is_partitioned(
    C const& c,
    Pred&& pred);

Return Value

true if c is partitioned with respect to pred, otherwise false.

Parameters

Name

Description

c

The container to test.

pred

The predicate used to partition the elements.

Created with MrDocs