std::stop_token::swap

< cpp‎ | thread‎ | stop token
void swap( std::stop_token& other ) noexcept;
(C++20 起)

交换 *thisother 的关联停止状态。

参数

other - 要与之交换内容的 stop_token

返回值

(无)