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

A helper alias template generating the index map associated to the adjacent unicity operation. More...

Typedefs

template<bool... Bs>
using kumi::function::adjacent_index_sequence

Detailed Description

A helper alias template generating the index map associated to the adjacent unicity operation.

Typedef Documentation

◆ adjacent_index_sequence

template<bool... Bs>
using kumi::function::adjacent_index_sequence
Initial value:
decltype(kumi_implementation_defined)

Header file

#include <kumi/kumi.hpp>

Call Signature

namespace kumi::function
{
template<bool... Bs>
using adjacent_index_sequence = kumi_implementation_defined;
}
decltype(kumi_implementation_defined) adjacent_index_sequence
Definition set.hpp:171

Template Parameters

  • Bs: Compile-time flags, one per adjacent pair, set to true when the pair differs

Return value

A std::index_sequence made of 0 followed by the position of each true flag shifted by one, i.e. the index of each element that differs from its predecessor. For Bs = <false, true, true>, the result is std::index_sequence<0, 2, 3>.