Callable object checking if a unary predicate p does not returns true for any element in t.
On a record type, the function operates on the underlying elements of the fields.
#include <kumi/algorithm/predicates.hpp>
template<product_type T, typename Pred>
constexpr auto none_of(T && t, Pred p)
noexcept;
constexpr none_of_t none_of
Callable object checking if a unary predicate p does not returns true for any element in t.
Definition predicates.hpp:257
template<product_type T, typename Pred>
constexpr auto none_of(T && t)
noexcept;
- t: Product Type to process
- p: Unary predicate
- The evaluation of !any_of(t,p).
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << std::boolalpha <<
kumi::none_of( t, [](
auto e) {
return e > 10.; }) <<
"\n";
}
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:33
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
std::cout << std::boolalpha <<
kumi::none_of( t, [](
auto e) {
return e > 10.; }) <<
"\n";
}
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36