Construct a std::experimental::shared_future
object from a
std::experimental::future
, transferring ownership
of the asynchronous result associated with the std::experimental::future
object to the newly-constructed
std::experimental::shared_future
.
shared_future(std::experimental::future<ResultType>&& other);
Constructs a new std::experimental::shared_future
instance.
The asynchronous result associated with other
prior to the invocation of the constructor is associated with the
newly-constructed std::experimental::shared_future
object.
other
has no associated
asynchronous result.
Nothing.
#include <experimental/future>