bsl::remove_pointer

Meta-function for transforming a pointer type to its referent type.

Synopsis

Declared in <bslmf_removepointer.h>

template<class t_TYPE>
struct remove_pointer;

Description

This struct template implements the remove_pointer meta-function defined in the C++11 standard [meta.trans.ptr], providing an alias, type, that returns the result. If the (template parameter) t_TYPE is a (possibly cv-qualified) pointer type, then type is an alias to the type pointed to by t_TYPE; otherwise, type is an alias to t_TYPE.

Type Aliases

NameDescription
type Alias to the type pointed to by t_TYPE, or to t_TYPE itself.