std::add_lvalue_reference, std::add_rvalue_reference
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <type_traits> | ||
template<class T > struct add_lvalue_reference; | (1) | (dal C++11) |
template<class T > struct add_rvalue_reference; | (2) | (dal C++11) |
Se
2) T
è un oggetto o una funzione, fornisce un type
membro typedef che è T&
. Se T
è un riferimento a qualche rvalue U
tipo, allora è type
U&
. In caso contrario, è type
T
.Original:
If
T
is an object or function, provides a member typedef type
which is T&
. If T
is an rvalue reference to some type U
, then type
is U&
. 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.
Se
T
è un oggetto o una funzione, fornisce un type
membro typedef che è T&&
, altrimenti type
è T
.Original:
If
T
is an object or function, provides a member typedef type
which is 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.
Indice |
[modifica]Membri tipi
Nome 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 | riferimento T , o T se non consentitoOriginal: reference to T , or T if not allowedThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Note
Questi tipo di trasformazioni d'onore di riferimento: norme collasso
Original:
These type transformations honor reference collapse rules:
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.
std::add_lvalue_reference<T&>::type is T&
std::add_lvalue_reference<T&&>::type is T&
std::add_rvalue_reference<T&>::type is T&
std::add_rvalue_reference<T&&>::type is T&&
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
(C++11) | Verifica se un tipo è o lvalue riferimento o di riferimento rvalue 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 template) |
(C++11) | rimuove riferimento dal tipo di dato Original: removes reference 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 template) |