std::packaged_task::operator=
Aus cppreference.com
< cpp | thread | packaged task
![]() |
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. |
packaged_task& operator=(const packaged_task&) = delete; |
(1) | |
packaged_task& operator=(packaged_task&& rhs) |
(2) | |
1)
Zuweisungsoperator gelöscht wird, ist
std::packaged_task
Bewegung nur .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.
Anmerkung: C + 11 ist nicht festgelegt, hier const ist dies der 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)
Löst den freigegebenen Zustand, wenn überhaupt, zerstört die zuvor gehaltene Task, und bewegt den freigegebenen Zustand und die Aufgabe, indem in
rhs
*this besaß. rhs
ohne einen gemeinsamen Staat und mit einem eingefahrenen von Aufgabe überlassen .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.
[Bearbeiten] Parameter
rhs | - | Die
std::packaged_task aus bewegenOriginal: 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. |
[Bearbeiten] Ausnahmen
2)[Bearbeiten] Beispiel
This section is incomplete Reason: no example |