bsl::is_pointer

This struct template implements the is_pointer meta-function defined in the C++11 standard [meta.unary.cat]to determine if the (template parameter) t_TYPE is a pointer. This struct derives from bsl::true_type if the t_TYPE is a pointer type (but not a pointer-to-non-static-member type), and bsl::false_type otherwise.

Synopsis

Declared in <bslmf_ispointer.h>

template<class t_TYPE>
struct is_pointer
    : bsl::false_type

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
is_pointer<t_TYPE*> This partial specialization of is_pointer derives from bsl::true_type for when the (template parameter) t_TYPE is a (cv-unqalified) pointer type.
is_pointer<t_TYPE volatile*> This partial specialization of is_pointer derives from bsl::true_type for when the (template parameter) t_TYPE is a volatile qualified pointer type.
is_pointer<t_TYPE const*> This partial specialization of is_pointer derives from bsl::true_type for when the (template parameter) t_TYPE is a const qualified pointer type.
is_pointer<t_TYPE const volatile*> This partial specialization of is_pointer derives from bsl::true_type for when the (template parameter) t_TYPE is a 'const volatile' qualified pointer type.