57template <
bool... values>
61 template <std::size_t idx,
bool v1,
bool... vs>
64 static constexpr std::size_t
value =
69 template <std::
size_t idx,
bool v>
72 static constexpr std::size_t
value = (v ? idx : idx + 1);
80template <
bool... conds>
static constexpr std::size_t first_true_v
Shorthand for first_true.
Definition first_true.hpp:81
Main namespace of the library.
Definition basic_types.hpp:48
Implementation of first_true.
Definition first_true.hpp:62
static constexpr std::size_t value
The index of the first value set to true.
Definition first_true.hpp:64
From a list of Boolean values, find the first that is set to true.
Definition first_true.hpp:58
static constexpr std::size_t value
The index of the value in values set to true.
Definition first_true.hpp:76