From Cppreference
|
|
|
|
|
template< class T > struct remove_pointer;
|
|
(C++11 feature)
|
|
|
Provides the member typedef type which is the type pointed to by T, or, if T is not a pointer, then type is the same as T.
[edit] Member types
|
Name
|
Definition
|
|
type
|
the type pointed to by T or T if it's not a pointer
|
[edit] Equivalent definition
template< class T > struct remove_pointer {typedef T type;};
template< class T > struct remove_pointer<T*> {typedef T type;};
template< class T > struct remove_pointer<T* const> {typedef T type;};
template< class T > struct remove_pointer<T* volatile> {typedef T type;};
template< class T > struct remove_pointer<T* const volatile> {typedef T type;};
|
[edit] Example
[edit] See also
|
|
checks if a type is a pointer type (class template)
|
|
|
adds pointer to the given type (class template)
|