std::add_pointer
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten]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 referenziertOriginal: 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. |
[Bearbeiten]Mögliche Implementierung
template<class T >struct add_pointer {typedeftypenamestd::remove_reference<T>::type* type;}; |
[Bearbeiten]Beispiel
This section is incomplete Reason: no example |
[Bearbeiten]Siehe auch
(C++11) | 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) |
(C++11) | 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) |