std::shared_future<T>::valid
From cppreference.com
< cpp | thread | shared future
C++
Concurrency support library
|
|
std::shared_future
Member functions | ||||
Getting the result | ||||
State | ||||
shared_future::valid | ||||
bool valid() const noexcept; |
(since C++11) | |
Checks if the future refers to a shared state.
This is the case only for futures that were not default-constructed or moved from. Unlike