Construct one std::future object from another,
transferring ownership of the asynchronous result associated with the
other std::future
object to the newly-constructed instance.
future(future&& other);
- Effects:
Move-constructs a new
std::futureinstance fromother.- Postconditions:
The asynchronous result associated with
otherprior to the invocation of the constructor is associated with the newly-constructedstd::futureobject.otherhas no associated asynchronous result.this->valid()returns the same value thatother.valid()returned before the invocation of this constructor.other.valid()returnsfalse.- Throws:
Nothing.
Header
#include <future>