交换函数(<thread>)
交换两 thread 对象的状态。
void swap(
thread& Left,
thread& Right
) _NOEXCEPT;
参数
Left
左 thread 对象。Right
正确的 thread 对象。
备注
函数调用 Left.swap(Right)。
要求
**标头:**线程
**命名空间:**std
交换两 thread 对象的状态。
void swap(
thread& Left,
thread& Right
) _NOEXCEPT;
Left
左 thread 对象。
Right
正确的 thread 对象。
函数调用 Left.swap(Right)。
**标头:**线程
**命名空间:**std