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