std::remove_pointer
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <type_traits>
|
||
template< class T > struct remove_pointer; |
(seit 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.
Mitglied Typen
Name
Original: Name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
type
|
the type pointed to by T or T if it's not a pointer
|
Mögliche Implementierung
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;};
|
Beispiel
| This section is incomplete Reason: no example |
