◐ Shell
clean mode source ↗

std::add_pointer – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<type_traits>

template< class T > struct add_pointer;

(seit C++11)

Bietet das Mitglied typedef type die die Art T* ist. Wenn T ein Referenz-Typ ist, dann type ist ein Zeiger auf den genannten Typ .

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.

Mitglied Typen

Name

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

Zeiger auf T oder mit dem bei T referenziert

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.

Mögliche Implementierung

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

Beispiel

Siehe auch

prüft, ob ein Typ ist ein Zeiger-Typ

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.


(Klassen-Template) [edit]

Entfernt Zeiger aus dem angegebenen Typ

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.


(Klassen-Template) [edit]