std::packaged_task<R(Args...)>::valid

bool valid() const noexcept;
(C++11 起)

检查 *this 是否拥有共享状态。

参数

(无)

返回值

*this 拥有共享状态则为 true ,否则为 false