KUMI v4.0.0
Flawless Fluorite
Loading...
Searching...
No Matches

◆ reducer

struct kumi::function::reduce_t kumi::function::reducer
constevalnoexcept

#include <kumi/functional/indexable.hpp>

Callable object computing the index map associated to the reduction operation.

Header file

#include <kumi/functional/indexable.hpp>

Call Signature

template<typename Count, typename N>
consteval auto reducer(Count c, N n) noexcept;
struct kumi::function::reduce_t reducer
Callable object computing the index map associated to the reduction operation.

Parameters

  • c: Total reduced pairs processing for the current step
  • n: Remainder if the number of values is odd

Return value

A kumi::projection_map segmenting the input domain in chunks of two consecutive elements plus the reminder.