Share via


shared_future::operator = 運算子

從指定的物件將有相 關聯的非同步狀態 。

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

參數

  • Right
    shared_future 物件。

傳回值

*this

備註

針對第一個運算子, Right 不再具有相關聯的非同步狀態在作業之後。

針對第二個方法, Right 會維護其相關聯的非同步狀態。

需求

標題: 未來

命名空間: 可以

請參閱

參考

shared_future 類別

<future>