senf::is_any_function< T > Struct Template Reference
[Type traits]

Test object if it is a function or member-function (pointer). More...

#include <senf/Utils/type_traits.hh>


Detailed Description

template<class T>
struct senf::is_any_function< T >

Test object if it is a function or member-function (pointer).

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 ));
Template Parameters:
T  type to test

Definition at line 224 of file type_traits.hh.


The documentation for this struct was generated from the following file: