KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
kumi::function::remove_index_sequence

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

Typedefs

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

Detailed Description

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

Typedef Documentation

◆ 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
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)>>)

Header file

#include <kumi/kumi.hpp>

Call Signature

namespace kumi::function
{
template<std::size_t N, std::size_t B, std::size_t E, std::size_t S = 1>
using remove_index_sequence = kumi_implementation_defined;
}
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
Definition index_sequence.hpp:282

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.