Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::shared_future >> std::experimental::shared_future Destructor

Destroys a std::experimental::shared_future object.

~shared_future();

Effects:

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

Throws:

Nothing

Header

#include <experimental/future>

See Also