共用方式為


promise::operator = 運算子

從指定的 promise 物件傳送這個 關聯的非同步狀態 。

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

參數

  • Other
    promise 物件。

傳回值

*this

備註

此運算子會從 Other傳輸這個關聯的非同步狀態。 在傳輸, Other 是 空的之後。

需求

標題: 未來

命名空間: 可以

請參閱

參考

promise Class

<future>