此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
交换两个 thread 对象的状态。
void swap( thread& Left, thread& Right ) _NOEXCEPT;
Left 左 thread 对象。
Right 正确的 thread 对象。
函数调用 Left.swap(Right)。
标头: 线程
命名空间: std
thread 类
<thread>
thread::swap 方法