std::remove_reference
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 remove_reference; | (seit C++11) | |
Wenn der Typ
T
ist ein Referenz-Typ, bietet das Mitglied typedef type
das ist die Art, auf die sich T
ist. Ansonsten type
ist T
.Original:
If the type
T
is a reference type, provides the member typedef type
which is the type, referred to by T
. Otherwise type
is T
.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 | der genannten Art durch T oder T wenn es nicht eine ReferenzOriginal: the type referred by T or T if it is not a referenceThe 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 remove_reference {typedef T type;};template<class T >struct remove_reference<T&>{typedef T type;};template<class T >struct remove_reference<T&&>{typedef T type;}; |
[Bearbeiten]Beispiel
This section is incomplete Reason: no example |
[Bearbeiten]Siehe auch
(C++11) | prüft, ob ein Typ ist entweder lvalue Verweis oder rvalue Verweis Original: checks if a type is either lvalue reference or rvalue reference 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) (C++11) | fügt lvalue oder rvalue Verweis auf den angegebenen Typ Original: adds lvalue or rvalue reference to 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) |