Documentation Home >> Headers >> <future> Header >> std::atomic_future >> std::atomic_future Destructor

Destroys a std::atomic_future object.

~atomic_future();

Effects:

Destroys *this. If there is no longer a std::promise or std::packaged_task instance associated with the asynchronous result associated with *this, and this is the last std::atomic_future instance associated with that asynchronous result, then destroy that asynchronous result.

Throws:

Nothing

Header

#include <future>

See Also