std::packaged_task<R(Args...)>::valid
From cppreference.com
< cpp | thread | packaged task
C++
Concurrency support library
|
|
std::packaged_task
Member functions | ||||
packaged_task::valid | ||||
Getting the result | ||||
Execution | ||||
Non-member functions | ||||
Helper classes | ||||
(until C++17) | ||||
Deduction guides(C++17) |
bool valid()constnoexcept; | (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.