std::shared_future::valid
From cppreference.com
                    
                                        
                    < cpp | thread | shared future
                    
                                                            
                    
|   bool valid() const;  | 
(since C++11) | |
Checks if the future refers to a shared state. This is the case only for futures returned by std::promise::get_future(), std::packaged_task::get_future() or std::async() until the first time get() is called.
Contents | 
[edit] Parameters
(none)
[edit] Return value
true if *this refers to a shared state, otherwise false.
[edit] Exceptions
[edit] Example
| This section is incomplete Reason: no example  | 
[edit] See also
|    waits for the result to become available  (public member function)  | |