std::stop_token::swap
来自cppreference.com
< cpp | thread | stop token
并发支持库
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_token
| 成员函数 | ||||
| 修改器 | ||||
|
stop_token::swap
|
||||
| 观察器 | ||||
| 非成员函数 | ||||
|
void
swap(
std::stop_token&
other )
noexcept;
|
(C++20 起) | |
交换 *this 与
other 的关联停止状态。
参数
| other | - | 要与之交换内容的 stop_token
|
返回值
(无)