Set *this to refer to the stop state (or lack thereof) that the specified other referred to, and vice versa. Equivalent to swap(*this, other).
*this
other
swap(*this, other)
Declared in <bslstl_stoptoken.h>
<bslstl_stoptoken.h>
void swap(stop_token& other) noexcept;