cpp/thread/future/share

Transfers the shared state of, if any, to a std object. Multiple std objects may reference the same shared state, which is not possible with std.

After calling on a std, cpp/thread/future/valid.

Parameters
(none)

Return value
A std object containing the shared state previously held by, if any, constructed as if by.