◐ Shell
clean mode source ↗

std::packaged_task::reset – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void reset();

(seit C++11)

Setzt der Staat Verzicht auf die Ergebnisse der vorherigen Ausführungen. New gemeinsamen Staat aufgebaut .

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.

Entspricht *this = packaged_task(std::move(f)), wo f die gespeicherten Aufgabe .

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.

Parameter

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ausnahmen

  • std::future_error wenn *this hat kein Staat geteilt. Der Fehlerzustand wird

    no_state

    gesetzt .

    Original:

    std::future_error if *this has no shared state. The error condition is set to

    no_state

    .

    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, wenn es nicht genug Speicher für einen neuen gemeinsamen Staat .

    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.

  • jede Ausnahme von der bewegen Konstruktor der neuen packaged_task geworfen

    Original:

    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.