32 Thread support library [thread]

32.3 Stop tokens [thread.stoptoken]

32.3.3 Class stop_­token [stoptoken]

32.3.3.4 Specialized algorithms [stoptoken.special]

friend void swap(stop_token& x, stop_token& y) noexcept;
Effects: Equivalent to: x.swap(y).