Computes the exclusive prefix scan of all elements of a product type using a tail recursive call.
namespace kumi::result
{
template<typename Function, product_type Tuple, typename Value>
using exclusive_scan_left_t = typename exclusive_scan_left<Function,Tuple,Value>::type;
}
constexpr auto exclusive_scan_left(Function &&f, T &&t, Value init)
Computes the exclusive prefix scan of all elements of a product type using a tail recursive call.
Definition scan.hpp:154
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
{
return acc + sizeof(elt);
}
, t
, std::size_t{42}
);
std::cout << output << "\n";
}
constexpr numeric_add plus
Forms a binary monoid callable that can be used in kumi::algoritm. It represents the addition.
Definition monoid.hpp:129
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:37