std::swap(std::thread)

std::swap(std::thread)

void swap( thread &lhs, thread &rhs );
(since C++11)

Overloads the std::swap algorithm for std::thread. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

Parameters

lhs, rhs - threads whose states to swap

Return value

(none).

Exceptions