get_try |
Defined in
<concurrency/future.hpp> |
Returns the result of the future.
(1) | ||
(2) |
(1)
If T
is not void
, returns an initialized optional
if the future has succeeded, otherwise an empty optional<T>
. Rethrows any caught exceptions if an error occurred.
(2)
If T
is void, returns true
if the future succeeded, otherwise false
. Rethrows any caught exceptions if an error occurred.
If T
is of type void
, it returns true
if the future is fulfilled; if T
is a non-void
type then it returns an optional<T>
with the result of the future if the future is already fulfilled, otherwise an empty optional<T>