From Cppreference
|
|
|
|
|
template< class T > struct add_pointer;
|
|
(C++11 feature)
|
|
|
Provides the member typedef type which is the type T*. If T is a reference type, then type is a pointer to the referred type.
[edit] Member types
|
Name
|
Definition
|
|
type
|
pointer to T or to the type referenced by T
|
[edit] Equivalent definition
template< class T >
struct add_pointer {
typedef typename std::remove_reference<T>::type* type;
};
|
[edit] Example
[edit] See also
|
|
checks if a type is a pointer type (class template)
|
|
|
removes pointer from the given type (class template)
|