cpp/thread/packaged task/get future

Returns a which shares the same shared state as.

can be called only once for each.

Parameters
(none)

Return value
A future which shares the same shared state as.

Exceptions
std on the following error conditions:


 * The shared state has already been retrieved via a call to . The error category is set to.
 * has no shared state. The error category is set to.