32 Thread support library [thread]

32.3 Stop tokens [thread.stoptoken]

32.3.4 Class stop_­source [stopsource]

32.3.4.4 Specialized algorithms [stopsource.special]

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