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