std::shared_future<T>::get
From cppreference.com
< cpp | thread | shared future
| Main template |
||
| const T& get() const; |
(1) | (since C++11) |
| std::shared_future<T&> specializations |
||
| T& get() const; |
(2) | (since C++11) |
| std::shared_future<void> specialization |
||
| void get() const; |
(3) | (since C++11) |
The get member function waits (by calling wait()) until the shared state is ready, then retrieves the value stored in the shared state (if any).
If valid() is false before the call to this function, the behavior is undefined.
Contents |