shared_future::operator=运算符

从指定的对象调用一个 关联的异步状态。

shared_future& operator=(shared_future&& Right) noexcept;
shared_future& operator=(const shared_future& Right);

参数

  • Right
    shared_future 对象。

返回值

*this

备注

对于第一个运算符,Right 不再有一个关联的状态在异步操作完成。

传递给第二个方法,Right 维护其关联的异步状态。

要求

**标头:**将来

**命名空间:**std

请参见

参考

shared_future选件类

<future>