交换函数(<thread>)

交换两 thread 对象的状态。

void swap(
   thread& Left,
   thread& Right
) _NOEXCEPT;

参数

  • Left
    thread 对象。

  • Right
    正确的 thread 对象。

备注

函数调用 Left.swap(Right)。

要求

**标头:**线程

**命名空间:**std

请参见

参考

thread Class

<thread>

thread::swap方法