Checks if unary predicate p returns true for all elements in the value t.
#include <kumi/tuple.hpp>
#include <iostream>
int main()
{
std::cout << std::boolalpha <<
kumi::all_of( t, [](
auto e) {
return e < 5; }) <<
"\n";
std::cout << std::boolalpha <<
kumi::all_of( -3.3, [](
auto e) {
return e < 5; }) <<
"\n";
}
constexpr auto all_of(T const &ts, Pred p) noexcept
Checks if unary predicate p returns true for all elements in the value t.
Definition: predicates.hpp:22
Fixed-size collection of heterogeneous values.
Definition: tuple.hpp:35