promise::operator=运算符

从指定的 promise 对象调用该 关联的异步状态。

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

参数

  • Other
    promise 对象。

返回值

*this

备注

此运算符从 Other调用该关联的异步状态。在调用,Other 为 空之后。

要求

**标头:**将来

**命名空间:**std

请参见

参考

promise Class

<future>