std::future::operator=
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
future& operator=( future&& other ); | (1) | (dal C++11) |
future& operator=(const future& other )= delete; | (2) | (dal C++11) |
Assegna il contenuto di un altro oggetto futuro.
1) 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.
Emette qualsiasi stato condiviso e movimento assegna il contenuto di
other
a *this. Dopo l'assegnazione, other.valid()==false e this->valid() produrrà lo stesso valore other.valid() prima della cessione.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
.
[modifica]Parametri
other | - | un std::future che trasferirà stato a *thisOriginal: a std::future that will transfer state to *thisThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
*this