promise::operator= Operator

将从指定的 promise 对象相关 异步的状态。

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

参数

  • Other
    一个 promise 对象。

返回值

*this

备注

此运算符将从 Other的关联异步的状态。 在正向,Other 为 null。

要求

标头: future

命名空间: std

请参见

参考

promise 类

<future>