KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches

◆ remove_index_sequence

template<std::size_t N, std::size_t B, std::size_t E, std::size_t S = 1>
using kumi::function::remove_index_sequence

#include <kumi/functional/index_sequence.hpp>

Initial value:
decltype(kumi_implementation_defined B) ? (E - B + S - 1) / S : 0),
std::make_index_sequence<N - ((E > B) ? (E - B + S - 1) / S : 0)>>)

A helper alias template generating the index sequence associated to the remove operation.

Header file

#include <kumi/functional/indexable.hpp>

Call Signature

template<std::size_t N, std::size_t B, std::size_t E, std::size_t S = 1>
decltype(kumi_implementation_defined B) ?(E - B+S - 1)/S :0), std::make_index_sequence< N -((E > B) ?(E - B+S - 1)/S :0)> >) remove_index_sequence
A helper alias template generating the index sequence associated to the remove operation.
Definition index_sequence.hpp:221

Template Parameters

  • N: Compile-time size of the input domain
  • B: Compile-time index of the beginning of the range to remove
  • E: Compile-time index of the end of the range to remove (excluded)
  • S: Compile-time stride to consider on the range to remove

Return value

A std::index_sequence containing, in increasing order, the indexes of [0, N) that are not of the form B + t * S < E.