std::add_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. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <type_traits>
|
||
template< class T > struct add_pointer; |
(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.
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. You can help to correct and verify the translation. Click here for instructions. |
Definition |
type
|
puntatore
T o al tipo indicato da TOriginal: pointer to T or to the type referenced by TThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Possibile implementazione
template< class T >
struct add_pointer {
typedef typename std::remove_reference<T>::type* type;
};
|
Esempio
| This section is incomplete Reason: no example |
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) |
rimuove puntatore dal tipo specificato Original: removes pointer from 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) |