Documentation Home >> Headers >> <jss/joining_thread.hpp> Header >> jss::joining_thread >> swap Non-member function for jss::joining_threads

Exchanges ownership of their associated threads of execution between two jss::joining_thread objects.

void swap(joining_thread& lhs,joining_thread& rhs);

Effects:

lhs.swap(rhs)

Throws:

Nothing

Header

#include <jss/joining_thread.hpp>

See Also