[#bsl-stop_token-swap] = xref:bsl.adoc[bsl]::xref:bsl/stop_token.adoc[stop_token]::swap :relfileprefix: ../../ :mrdocs: Exchange the stop states referred to by `*this` and `other`. == Synopsis Declared in `<bslstl_stoptoken.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/stop_token.adoc[stop_token]& other) noexcept; ---- == Description Equivalent to `swap(*this, other)`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | token with which to exchange stop states |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#