◐ Shell
clean mode source ↗

std::thread::operator= – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

thread& operator=( thread&& other );

(seit C++11)

Weist den Zustand der other um *this mit move-Semantik .

Original:

Assigns the state of other to *this using move semantics.

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

Wenn *this hat noch einen zugehörigen laufenden Faden (dh joinable() == true) wird std::terminate() genannt .

Original:

If *this still has an associated running thread (i.e. joinable() == true), std::terminate() is called.

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

Parameter

other -

ein weiterer Thread-Objekt zu diesem Thread-Objekt zuweisen

Original:

another thread object to assign to this thread object

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

Rückgabewert

*this

Ausnahmen