28 #ifndef SCHNEK_UTIL_TRAITS_HPP 29 #define SCHNEK_UTIL_TRAITS_HPP 36 template <
class Fn,
class... Args>
40 static auto test(U* p) -> decltype((*p)(std::declval<Args>()...),
void(), std::true_type());
42 static auto test(...) -> decltype(std::false_type());
44 static constexpr
bool value = decltype(test<Fn>(0))::value;
49 #endif SCHNEK_UTIL_TRAITS_HPP Determines whether Fn can be invoked with the arguments Args....
Definition: traits.hpp:37