A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../concepts/../types/remove_pointer.html below:

std::remove_pointer - cppreference.com

template< class T >
struct remove_pointer;

(since C++11)

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.

If the program adds specializations for std::remove_pointer, the behavior is undefined.

[edit] Member types Name Definition type the type pointed to by T or T if it's not a pointer [edit] Helper types

template< class T >
using remove_pointer_t = typename remove_pointer<T>::type;

(since C++14) [edit] Possible implementation
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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4