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

◆ adjacent_index_sequence

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

#include <kumi/functional/set.hpp>

Initial value:
decltype(kumi_implementation_defined)

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

Header file

#include <kumi/functional/set.hpp>

Call Signature

template<bool... Bs>
decltype(kumi_implementation_defined) adjacent_index_sequence
A helper alias template generating the index map associated to the adjacent unicity operation.
Definition set.hpp:144

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>.