std::tuple::operator=
De cppreference.com
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
tuple& operator=(const tuple& other ); | (1) | (desde C++11) |
tuple& operator=( tuple&& other ); | (2) | (desde C++11) |
template<class... UTypes> tuple& operator=(const tuple<UTypes...>& other ); | (3) | (desde C++11) |
template<class... UTypes> tuple& operator=( tuple<UTypes...>&& other ); | (4) | (desde C++11) |
template<class U1, class U2 > tuple& operator=(const pair<U1,U2>& p ); | (5) | (desde C++11) |
template<class U1, class U2 > tuple& operator=( pair<U1,U2>&& p ); | (6) | (desde C++11) |
Reemplaza el contenido de la tupla con el contenido de otra tupla o un par .
1) Original:
Replaces the contents of the tuple with the contents of another tuple or a pair.
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.
Copiar el operador de asignación. Sustituye cada elemento con una copia del correspondiente elemento de
2) other
.Original:
Copy assignment operator. Replaces each element with a copy of the corresponding element of
other
.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.
Mueva operador de asignación. Sustituye cada elemento con el elemento correspondiente de
3) other
utilizando la semántica de movimiento . Original:
Move assignment operator. Replaces each element with the corresponding element of
other
using move semantics. 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.
Para todos
4) i
, asigna a std::get<i>(other)std::get<i>(*this) .Original:
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.
Para todos
5) i
, asigna a std::forward<Ui>(std::get<i>(other))std::get<i>(*this) . Original:
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.
p.first asigna al primer elemento de *this y p.second al segundo elemento de *this .
6) Original:
Assigns p.first to the first element of *this and p.second to the second element of *this.
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::forward<U1>(p.first) asigna al primer elemento de *this y std::forward<U2>(p.second) al segundo elemento de *this .
Original:
Assigns std::forward<U1>(p.first) to the first element of *this and std::forward<U2>(p.second) to the second element of *this.
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.
Contenido |
[editar]Parámetros
other | - | tupla para reemplazar el contenido de esta tupla Original: tuple to replace the contents of this tuple The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
p | - | par para reemplazar el contenido de este 2-tupla Original: pair to replace the contents of this 2-tuple The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar]Valor de retorno
*this
[editar]Excepciones
1)(Ninguno)
2) Original:
(none)
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.
Especificación noexcept: (desde C++11)
3-5) noexcept(noexcept( is_nothrow_move_assignable<T0>::value&& | ||
(Ninguno)
6) Original:
(none)
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.
[editar]Ejemplo
Esta sección está incompleta Razón: sin ejemplo |