Destroys a std::shared_future object.
~shared_future();
- Effects:
Destroys
*this. If there is no longer astd::promiseorstd::packaged_taskinstance associated with the asynchronous result associated with*this, and this is the laststd::shared_futureinstance associated with that asynchronous result, then destroy that asynchronous result.- Throws:
Nothing
Header
#include <future>