absl::c_none_of

Container-based version of the <algorithm> std::none_of() function to test if no elements in a container fulfill a condition.

Synopsis

Declared in <absl/algorithm/container.h>

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

Return Value

true if pred returns false for all elements of c.

Parameters

NameDescription
cThe container to test.
predThe predicate applied to each element.