#include <senf/Utils/type_traits.hh>
This meta function will remove a plain or member pointer from the given type. If T is neither a member pointer nor an ordinary pointer, T will be returned unchanged.
BOOST_STATIC_ASSERT(( boost::is_same< senf::remove_any_pointer< int (Class::*) >::type, int >::value )); BOOST_STATIC_ASSERT(( boost::is_same< senf::remove_any_pointer< void (Class::*)(int) >::type, void (int) > ); BOOST_STATIC_ASSERT(( boost::is_same< senf::remove_any_pointer < int (*)() >::type, int ( >::value )); BOOST_STATIC_ASSERT(( boost::is_same< senf::remove_any_pointer < int >::type, int >::value ));
T | type to remove member pointer from |
Definition at line 204 of file type_traits.hh.