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