swap(std::stop_token)

Overloads the std::swap algorithm for std::stop_token. Exchanges the associated stop-state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

# Declarations

friend void swap( stop_token& lhs, stop_token& rhs ) noexcept;

(since C++20)

# Parameters

# Return value

(none)