std::stop_source:: swap
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
|
stop_source::swap
|
||||
| Observers | ||||
| Non-member functions | ||||
| Helper tags | ||||
|
void
swap
(
std::
stop_source
&
other
)
noexcept
;
|
(自 C++20 起) | |
交换 * this 与 other 的停止状态。
参数
| 其他 | - |
用于交换内容的
stop_source
|
返回值
(无)