◐ Shell
clean mode source ↗

std::add_pointer — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<type_traits>

template< class T > struct add_pointer;

(depuis C++11)

Fournit la type membre typedef qui est le T* type. Si T est un type référence, puis type est un pointeur vers le type visé .

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.

Types de membres

Nom

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

T pointeur vers ou au type référencé par 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.

Mise en œuvre possible

template< class T >
struct add_pointer {
    typedef typename std::remove_reference<T>::type* type;
};

Exemple

Voir aussi

vérifie si un type est un type pointeur

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 générique) [edit]

supprime pointeur de type donné

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 générique) [edit]