bsl::is_member_pointer

This struct template implements the is_member_pointer meta-function defined in the C++11 standard [meta.unary.comp]to determine if the (template parameter) t_TYPE is a member pointer type. This struct derives from bsl::true_type if the t_TYPE is a member pointer type, and from bsl::false_type otherwise. Additional specializations are provided below to give the correct answer in all cases.

Synopsis

Declared in <bslmf_ismemberpointer.h>

template<class t_TYPE>
struct is_member_pointer
    : false_type

Base Classes

NameDescription
false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
is_member_pointer<t_TARGET_TYPEt_HOST_TYPE::*> This partial specialization provides the true_type result for a (cv-unqualified) pointer-to-member type. Note that additional partial specializations are required to handle the cv-qualified cases.
is_member_pointer<t_TARGET_TYPE volatilet_HOST_TYPE::*> This partial specialization provides the true_type result for a volatile-qualified pointer-to-member type.
is_member_pointer<t_TARGET_TYPE constt_HOST_TYPE::*> This partial specialization provides the true_type result for a const-qualified pointer-to-member type.
is_member_pointer<t_TARGET_TYPE const volatilet_HOST_TYPE::*> This partial specialization provides the true_type result for a const volatile-qualified pointer-to-member type.