thread::operator=运算符

将指定对象中的线程与当前对象。

thread& operator=(
   thread&& Other
) _NOEXCEPT;

参数

  • Other
    thread 对象。

返回值

*this

备注

如果调用对象 joinable,方法称为"分离。

在进行关联后,Other 设置为一个默认值构造的状态。

要求

**标头:**线程

**命名空间:**std

请参见

参考

thread Class

<thread>