std::remove_reference
De 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. |
Déclaré dans l'en-tête <type_traits> | ||
template<class T > struct remove_reference; | (depuis C++11) | |
Si le
T
type est un type référence, fournit la type
membre typedef qui est le type, désigné par T
. Sinon type
est 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.
Sommaire |
[modifier]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 | du type visé par T ou T si ce n'est pas une référenceOriginal: 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. |
[modifier]Mise en œuvre possible
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;}; |
[modifier]Exemple
This section is incomplete Reason: no example |
[modifier]Voir aussi
(C++11) | vérifie si un type est soit lvalue de référence ou' rvalue de référence 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. (classe générique) |
(C++11) (C++11) | ajoute lvalue ou' rvalue de référence pour le type donné 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. (classe générique) |