Performs a tree-like reduction of all elements of a product type.
namespace kumi::result
{
template<mono
id M, product_type T,
typename Value>
struct reduce;
template<monoid M, product_type T, typename Value>
using reduce_t = typename reduce<M,T,Value>::type;
}
constexpr auto reduce(M &&m, T &&t)
Performs a tree-like reduction of all elements of a product type.
Definition reduce.hpp:62
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
}
constexpr boolean_and bit_and
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the logical and oper...
Definition monoid.hpp:143
constexpr numeric_prod multiplies
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the multiplication.
Definition monoid.hpp:136
constexpr numeric_add plus
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the addition.
Definition monoid.hpp:129
constexpr boolean_or bit_or
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the logical or opera...
Definition monoid.hpp:150
constexpr boolean_xor bit_xor
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the logical xor oper...
Definition monoid.hpp:157
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:37