xieite ::type_list <Ts ...>::find_idx <>
Defined in header <xieite/meta/type_list.hpp>
Finds the first index of
Ts
that satisfies some functor.Definition
template <auto pred >requires (xieite ::is_satisfd_any <pred ,Ts ...>)static constexpr std ::size_t find_idx =/* ??? */ ;
Example
Output:int main () {using List =xieite ::type_list <int ,char ,float ,void* >;xieite ::dump (List ::find_idx <[]<std ::floating_point > {}>); }
[View in Compiler Explorer]2