Computes the inclusive suffix scan of all elements of a product type using a non-tail recursive call.
namespace kumi::result
{
template<typename Function, product_type Tuple>
using inclusive_scan_right_t = typename inclusive_scan_right<Function,Tuple>::type;
}
constexpr auto inclusive_scan_right(Function &&f, T &&t, Value init)
Computes the inclusive suffix scan of all elements of a product type using a non-tail recursive call.
Definition scan.hpp:238
#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