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

Destroys a std::future object.

~future();

Effects:

Destroys *this. If this is the last reference to the asynchronous result associated with *this (if any), then destroy that asynchronous result.

Throws:

Nothing

Header

#include <future>

See Also