shared_future::shared_future 建構函式

建構 shared_future 物件。

shared_future() _NOEXCEPT;
shared_future(future<Ty>&& Right) _NOEXCEPT;
shared_future(shared_future&& Right) _NOEXCEPT;
shared_future(const shared_future& Right);

參數

  • Right
    未來shared_future 物件。

備註

第一個建構函式建構沒有相 關聯的非同步狀態的 shared_future 物件。

第二和第三個建構函式建構 shared_future 物件並從 Right中將這個關聯的非同步狀態。 Right 不再具有相關聯的非同步狀態。

第四個建構函式建構有關聯的非同步狀態與 Right相同的 shared_future 物件。

需求

標題: 未來

命名空間: 可以

請參閱

參考

shared_future 類別

<future>