senf::remove_any_pointer< T > Struct Template Reference

Remove any type of pointer from type. More...

#include <senf/Utils/type_traits.hh>

Inheritance diagram for senf::remove_any_pointer< T >:

Detailed Description

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

Remove any type of pointer from type.

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<
int (
>::value ));
BOOST_STATIC_ASSERT(( boost::is_same<
int
>::value ));
    \tparam T type to remove member pointer from

Definition at line 195 of file type_traits.hh.


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