std::remove_pointer
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <type_traits>
|
||
template< class T > struct remove_pointer; |
(dal 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
.
Indice |
[modifica] Membri tipi
Nome
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
|
[modifica] Possibile implementazione
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;}; |
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
(C++11) |
Verifica se un tipo è un tipo di puntatore Original: checks if a type is a pointer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe template) |
(C++11) |
aggiunge puntatore al tipo di dato Original: adds pointer to the given type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe template) |