std::future::share
From cppreference.com
std::shared_future<T> share();
|
||
Transfers the shared state of *this to a std::shared_future object. Multiple std::shared_future objects may reference the same shared state, which is not possible with std::future.
After calling share
on a std::future, valid() == false.
Contents |
[edit] Parameters
(none)
[edit] Return value
A std::shared_future object containing the shared state previously held by *this
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
(C++11)
|
waits for a value (possibly referenced by other futures) that is set asynchronously (class template) |