[#bsl-stop_source-swap] = xref:bsl.adoc[bsl]::xref:bsl/stop_source.adoc[stop_source]::swap :relfileprefix: ../../ :mrdocs: 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)`. == Synopsis Declared in `<bslstl_stoptoken.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/stop_source.adoc[stop_source]& other) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#