std::packaged_task::valid

From cppreference.com
bool valid() const;
(since C++11)

Checks whether *this has a shared state.

[edit] Parameters

(none)

[edit] Return value

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

[edit] Exceptions

noexcept specification:  
noexcept