◐ Shell
clean mode source ↗

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.

Click here for the English version of this page

<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.

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 T

Original:

pointer to T or to the type referenced by T

The 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

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.
You can help to correct and verify the translation. Click here for instructions.


(classe template) [modifica]

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) [modifica]