std::promise::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. |
promise& operator=( promise&& other ); | (1) | (desde C++11) |
promise& operator=(const promise& rhs )= delete; | (2) | (desde C++11) |
Atribui o conteúdo.
Original:
Assigns the contents.
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.
1)
Mova operador de atribuição. Atribui o estado compartilhado de
other
usando a semântica de movimento. other
está em estado válido, mas indefinido depois.Original:
Move assignment operator. Assigns the shared state of
other
using move semantics. other
is in valid, but undefined state afterwards.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.
2)
promise
não é cópia transferível.Original:
promise
is not copy-assignable.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]Parâmetros
other | - | outro promise adquirir o estado deOriginal: another promise to acquire the state fromThe 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)