bsl::stop_token::swap

Exchange the stop states referred to by *this and other.

Synopsis

Declared in <bslstl_stoptoken.h>

void
swap(stop_token& other) noexcept;

Description

Equivalent to swap(*this, other).

Parameters

NameDescription
othertoken with which to exchange stop states