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

◆ slicer

struct kumi::function::slice_t kumi::function::slicer
constevalnoexcept

#include <kumi/functional/indexable.hpp>

Callable object computing the index map associated to a slicing (begin, end, step) operation.

Header file

#include <kumi/functional/indexable.hpp>

Call Signature

template<typename Begin, typename End, typename Step>
consteval auto slicer(Begin b, End e, Step s) noexcept;
struct kumi::function::slice_t slicer
Callable object computing the index map associated to a slicing (begin, end, step) operation.

Parameters

  • b: Compile-time index marking the beginning of the slice range
  • e: Compile-time index marking the end boundary of the slice range (exclusive)
  • s: Compile-time stride step hopping increment factor

Return value

A std::index_sequence tracking linear jumps matching Begin + I * Step.