#include <senf/Utils/type_traits.hh>
is_any_function will inherit from boost::true_type
, when T is a function type, function pointer type or a member function pointer type. Otherwise, it will inherit from boost::false_type
.
BOOST_STATIC_ASSERT(( senf::is_any_function< void () >::value )); BOOST_STATIC_ASSERT(( senf::is_any_function< void (*)(int) >::value )); BOOST_STATIC_ASSERT(( senf::is_any_function< void (Class::*)() >::value )); BOOST_STATIC_ASSERT(( ! senf::is_any_function< int * >::value ));
T | type to test |
Definition at line 224 of file type_traits.hh.