std::future::operator= - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(1) | (desde C++11) |
|
|
(2) | (desde C++11) |
Atribui o conteúdo de outro objeto futuro.
Original:
Assigns the contents of another future object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Libera qualquer estado compartilhado e movimento atribui o conteúdo de other para *this. Após a atribuição, other.valid() == false e this->valid() irá produzir o mesmo valor que other.valid() antes da atribuição.
Original:
Releases any shared state and move-assigns the contents of other to *this. After the assignment, other.valid() == false and this->valid() will yield the same value as other.valid() before the assignment.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2) std::future is not CopyAssignable.
Parâmetros
| other | - | um Original: a The text has been machine-translated via Google Translate. |
Valor de retorno
*this