Construct one std::shared_future object from another,
transferring ownership of the asynchronous result associated with the
other std::shared_future object to the
newly-constructed instance.
shared_future(shared_future&& other);
- Effects:
Constructs a new
std::shared_futureinstance.- Postconditions:
The asynchronous result associated with
otherprior to the invocation of the constructor is associated with the newly-constructedstd::shared_futureobject.otherhas no associated asynchronous result.- Throws:
Nothing.
Header
#include <future>