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

A helper alias template generating the positions of the true flags in a pack of booleans. More...

Typedefs

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

Detailed Description

A helper alias template generating the positions of the true flags in a pack of booleans.

Typedef Documentation

◆ select_index_sequence

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

Header file

#include <kumi/kumi.hpp>

Call Signature

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

Template Parameters

  • Bs: Compile-time flags, one per input element, set to true when the element is selected

Return value

A std::index_sequence containing, in increasing order, the positions of the true flags. For Bs = <true, false, true, true>, the result is std::index_sequence<0, 2, 3>.