std::packaged_task::reset - cppreference.com
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. |
<metanoindex/>
<tbody> </tbody>
|
|
(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.
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.
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.
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.
Eccezioni
std::future_error
no_state*thisse non ha lo stato condiviso. La condizione di errore è impostato.
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_tasknuovoOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.