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