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

◆ rotater

struct kumi::function::rotate_t kumi::function::rotater
constevalnoexcept

#include <kumi/functional/indexable.hpp>

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

Header file

#include <kumi/functional/indexable.hpp>

Call Signature

template<typename Size, typename Rotation>
consteval auto rotater(Size s, Rotation r) noexcept;
struct kumi::function::rotate_t rotater
Callable object computing the index map associated to the rotation operation.

Parameters

  • s: Compile-time length of the input domain
  • r: Rotation factor

Return value

A std::index_sequence mapping circularly rotated values.