senf::member_class< MemberPointer > Struct Template Reference

Get class of a member pointer. More...

#include <senf/Utils/type_traits.hh>

Public Types

typedef void type
 

Detailed Description

template<class MemberPointer>
struct senf::member_class< MemberPointer >

Get class of a member pointer.

Returns the class, an arbitrary member pointer belongs to. If the argument is not a member pointer, void is returned.

BOOST_STATIC_ASSERT(( boost::is_same<
senf::member_class< int (Class::*) >::type,
Class
>::value ));
BOOST_STATIC_ASSERT(( boost::is_Same<
void
>::value ));
    \tparam MemberPointer Type to get the member pointer class from

Definition at line 150 of file type_traits.hh.

Member Typedef Documentation

◆ type

template<class MemberPointer>
typedef void senf::member_class< MemberPointer >::type

Definition at line 152 of file type_traits.hh.


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