kumi v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches
Tuple Queries

Algorithms querying properties from tuples. More...

Functions

template<concepts::product_type T>
constexpr auto kumi::all_of (T &&ts) noexcept
 Computes the reduction of a tuple over the && operator.
template<typename Pred, concepts::product_type T>
constexpr auto kumi::all_of (T &&ts, Pred p) noexcept
 Checks if unary predicate p returns true for all elements in the value t.
template<concepts::product_type T>
constexpr auto kumi::any_of (T &&ts) noexcept
 Computes the reduction of a tuple over the || operator.
template<typename Pred, concepts::product_type T>
constexpr auto kumi::any_of (T &&ts, Pred p) noexcept
 Checks if unary predicate p returns true for any elements in the value t.
template<concepts::product_type T>
constexpr std::size_t kumi::count (T &&ts) noexcept
 Counts the number of elements of t not equivalent to false.
template<typename Pred, concepts::product_type T>
constexpr std::size_t kumi::count_if (T &&ts, Pred p) noexcept
 Counts the number of elements of t satisfying predicates p.
template<typename Pred, concepts::product_type Tuple>
constexpr auto kumi::locate (Tuple &&t, Pred p) noexcept
 Return the index of a value which type satisfies a given predicate.
template<concepts::product_type Tuple>
constexpr bool kumi::none_of (Tuple &&ts) noexcept
 Checks no elements of a tuple are true.
template<typename Pred, concepts::product_type Tuple>
constexpr bool kumi::none_of (Tuple &&ts, Pred p) noexcept
 Checks if unary predicate p returns true for no elements in the value t.