std::tuple::operator=
Da 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. |
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) |
Substitui o conteúdo do tuplo com o conteúdo de outro tupla ou um 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 operador de atribuição. Substitui cada elemento com uma cópia do elemento correspondente 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.
Mova operador de atribuição. Substitui cada elemento com o elemento correspondente de
3) other
usando semântica mover. 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
, atribui std::get<i>(other) para std::get<i>(*this).Original:
For all
i
, assigns std::get<i>(other) to std::get<i>(*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.
Para todos
5) i
, atribui std::forward<Ui>(std::get<i>(other)) para 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.
Atribui p.first para o primeiro elemento de *thisp.second e para o 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.
Atribui std::forward<U1>(p.first) para o primeiro elemento de *thisstd::forward<U2>(p.second) e para o 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.
Índice |
[editar]Parâmetros
other | - | tupla para substituir o conteúdo deste 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 substituir o conteúdo deste 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]Exceções
1)(Nenhum)
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.
noexcept specification: (desde C++11)
3-5) noexcept(noexcept( is_nothrow_move_assignable<T0>::value&& | ||
(Nenhum)
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]Exemplo
Esta seção está incompleta Motivo: sem exemplo |