共用方式為


packaged_task::operator bool 運算子

指定物件是否有 associated asynchronous state。

operator bool() const _NOEXCEPT;

傳回值

如果物件有關聯的非同步狀態,就是 true,否則為 false。

需求

標題: future

命名空間: std

請參閱

參考

packaged_task 類別

<future>