senf::is_any_function< T > Struct Template Reference

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

#include <senf/Utils/type_traits.hh>

Inheritance diagram for senf::is_any_function< T >:

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 ));
    \tparam T type to test

Definition at line 215 of file type_traits.hh.


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