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

◆ shifter

struct kumi::function::shift_t kumi::function::shifter
constevalnoexcept

#include <kumi/functional/indexable.hpp>

Callable object computing linear indexing translations.

Header file

#include <kumi/functional/indexable.hpp>

Call Signature

template<typename Offset, typename Size>
consteval auto shifter(Offset o, Size s) noexcept;
struct kumi::function::shift_t shifter
Callable object computing linear indexing translations.

Parameters

  • o: Offset to add to each element in the input domain
  • s: Size of the input domain

Return value

A std::index_sequence shifted uniformly forward by o.