std::jthread::operator=

If *this still has an associated running thread (i.e. joinable() == true), calls request_stop() followed by join(). Assigns the state of other to *this and sets other to a default constructed state.

# Declarations

std::jthread& operator=( std::jthread&& other ) noexcept;

(since C++20)

# Parameters

# Return value

*this