std::packaged_task::reset
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. |
void reset(); |
(dal C++11) | |
Reimposta lo stato abbandonando i risultati delle esecuzioni precedenti. New stato condiviso è costruito.
Original:
Resets the state abandoning the results of previous executions. New shared state is constructed.
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.
Equivalente a *this = packaged_task(std::move(f)), dove
f
è memorizzato compito.Original:
Equivalent to *this = packaged_task(std::move(f)), where
f
is the stored 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
(Nessuno)
Original:
(none)
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] Valore di ritorno
(Nessuno)
Original:
(none)
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] Eccezioni
- std::future_error *this se non ha lo stato condiviso. La condizione di errore è impostato no_state.Original:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::bad_alloc se non c'era abbastanza memoria per un nuovo stato condiviso.Original:std::bad_alloc if there was not enough memory for a new shared state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - qualsiasi eccezione generata dal spostare costruttore del
packaged_task
nuovoOriginal:any exception thrown by the spostare costruttore of the newpackaged_task
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.