std::stop_source::swap
Min standard notice:
Exchanges the stop-state of *this and other.
# Declarations
void swap( std::stop_source& other ) noexcept;
(since C++20)
# Parameters
other: stop_source to exchange the contents with
# Return value
(none)