std::future::operator=
De 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. |
<metanoindex/>
<tbody> </tbody> future& operator=( future&& other ); |
(1) | (depuis C++11) |
future& operator=( const future& other ) = delete; |
(2) | (depuis C++11) |
Assigne le contenu d'un autre objet avenir .
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Qui rejette tout état partagé et mouvement assigne le contenu de
other à *this. Après la cession, other.valid() == false et this->valid() donnera la même valeur que other.valid() avant la cession .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.
You can help to correct and verify the translation. Click here for instructions.
2) std::future is not CopyAssignable.
Paramètres
| other | - | un
std::future qui va transférer l'état d'*this Original: a std::future that will transfer state to *this The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
*this