13 #ifndef TINYMPL_VARIADIC_FIND_IF_HPP
14 #define TINYMPL_VARIADIC_FIND_IF_HPP
16 #include <type_traits>
34 template<
template<
class ... T>
class F, class ... Args> struct
find_if;
36 template<
template<
class ...T>
class F, class Head, class ... Tail>
37 struct
find_if<F, Head, Tail...> :
38 std::conditional < F<Head>::type::value,
39 std::integral_constant<std::size_t, 0>,
40 std::integral_constant < std::size_t, 1 +
41 find_if<F, Tail...>::type::value >
45 template<
template<
class ...T>
class F> struct
find_if<F> :
46 std::integral_constant<std::size_t, 0>
52 #endif // TINYMPL_VARIADIC_FIND_IF_HPP
Definition: find_if.hpp:34