Section: 33.10.7 [futures.unique.future] Status: C++17 Submitter: Agustín K-ballo Bergé Opened: 2015-09-03 Last modified: 2021-06-06 18:38:24 UTC
View all other issues in [futures.unique.future].
View all issues with C++17 status.
The standard is usually very explicit on when a shared state is released, except for future::get for which it only states valid() == false as a postcondition.
[2016-08 - Chicago]
Thurs AM: Moved to Tentatively Ready
This wording is relative to N4527.
Modify [futures.unique_future] as indicated:
R future::get(); R& future<R&>::get(); void future<void>::get();
-14- Note: as described above, the template and its two required specializations differ only in the return type and return value of the member function get.-15- Effects:
wait()s until the shared state is ready, then retrieves the value stored in the shared state