Documentation Home >> Headers >> <future> Header >> std::atomic_future >> std::atomic_future Move Constructor

Construct one std::atomic_future object from another, transferring ownership of the asynchronous result associated with the other std::atomic_future object to the newly-constructed instance.

atomic_future(atomic_future&& other);

Effects:

Constructs a new std::atomic_future instance.

Postconditions:

The asynchronous result associated with other prior to the invocation of the constructor is associated with the newly-constructed std::atomic_future object. other has no associated asynchronous result.

Throws:

Nothing.

Header

#include <future>

See Also