std::packaged_task::operator=
Da cppreference.com.
< cpp | thread | packaged task
![]() |
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. |
packaged_task& operator=(const packaged_task&) = delete; |
(1) | |
packaged_task& operator=(packaged_task&& rhs) |
(2) | |
1)
Operatore di assegnazione di copia viene eliminato,
std::packaged_task
è mossa solo.Original:
Copy assignment operator is deleted,
std::packaged_task
is move-only.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.
Nota: C + 11 non const specificato qui, questa è la defect 2067.
Original:
Note: C++11 does not specify const here, this is the defect 2067.
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)
Rilascia lo stato condiviso, se presente, distrugge l'attività precedentemente detenuta, e sposta lo stato condiviso e il compito di proprietà
rhs
in *this. rhs
è lasciato senza uno stato comune e con un mosso-da attività.Original:
Releases the shared state, if any, destroys the previously-held task, and moves the shared state and the task owned by
rhs
into *this. rhs
is left without a shared state and with a moved-from task.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.
[modifica] Parametri
rhs | - | il
std::packaged_task di passare daOriginal: the std::packaged_task to move fromThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Eccezioni
2)[modifica] Esempio
This section is incomplete Reason: no example |