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.
Declared in <bslmf_ismemberpointer.h>
template<class t_TYPE>
struct is_member_pointer
: false_type
| Name | Description |
|---|---|
false_type | Metafunction representing the boolean constant false. |
| Name | Description |
|---|---|
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. |