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

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

#include <senf/Utils/type_traits.hh>

Inheritance diagram for senf::remove_any_pointer< T >:
Inheritance graph
[legend]

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<
    senf::remove_any_pointer < int (*)() >::type,
    int (
>::value ));
BOOST_STATIC_ASSERT(( boost::is_same<
    senf::remove_any_pointer < int >::type,
    int
>::value ));
Template Parameters:
T  type to remove member pointer from

Definition at line 204 of file type_traits.hh.


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