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

Checks whether *this has a shared state.

# Declarations

bool valid() const noexcept;

(since C++11)

# Return value

true if *this has a shared state, false otherwise.