|
static constexpr auto | value |
|
◆ value
template<type_list_like List, auto Predicate>
Initial value:= for_each_as_values<List>([]<typename... Ts>(std::type_identity<Ts>...) {
bool found{};
std::size_t index{std::numeric_limits<std::size_t>::max()};
auto handler = [&, counter = static_cast<std::size_t>(0)]<typename U>(std::type_identity<U>) mutable {
if (!found && Predicate(std::type_identity<U>{})) {
found = true;
index = counter;
}
counter++;
};
return (handler(std::type_identity<Ts>{}), ..., index);
})
The documentation for this struct was generated from the following file: