std::add_pointer - cppreference.com
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. |
<metanoindex/>
<tbody> </tbody>
| Elemento definito nell'header <type_traits> |
||
|
|
(dal C++11) | |
Fornisce la type membro typedef che è il T* tipo. Se T è un tipo di riferimento, quindi type è un puntatore al tipo di cui.
Original:
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.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Membri tipi
Nome Original: Name The text has been machine-translated via Google Translate. |
Definition |
type
|
puntatore Original: pointer to The text has been machine-translated via Google Translate. |
Possibile implementazione
template< class T > struct add_pointer { typedef typename std::remove_reference<T>::type* type; };
Esempio
Vedi anche
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. (classe template) [modifica] | |
rimuove puntatore dal tipo specificato Original: removes pointer from the given type The text has been machine-translated via Google Translate. (classe template) [modifica] | |