std::stop_source::swap

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

交换 *thisother 的停止状态。

参数

other - 要与之交换内容的 stop_source

返回值

(无)