W3cubDocs

/C++

std::packaged_task::valid

bool valid() const;
(since C++11)

Checks whether *this has a shared state.

Parameters

(none).

Return value

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

Exceptions

noexcept specification:
noexcept

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/thread/packaged_task/valid