std::shared_future<T> share() noexcept;
Transfers the shared state of
*this, if any, to a
std::shared_future object. Multiple
std::shared_future objects may reference the same shared state, which is not possible with
share on a
std::shared_future object containing the shared state previously held by
*this, if any, constructed as if by
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
|DR||Applied to||Behavior as published||Correct behavior|
|LWG 2556||C++11|| || requirement removed and made
| waits for a value (possibly referenced by other futures) that is set asynchronously
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.