Destroys a std::promise object.
~promise();
- Effects:
Destroys
*this. If*thishas an associated asynchronous result, and that result is not ready, then that result becomes ready with astd::future_errorexception with an error code ofstd::future_errc::broken_promise.- Throws:
Nothing
Header
#include <future>