std::shared_future::~shared_future

From cppreference.com
~shared_future();
(since C++11)

If *this is the last object referring to the shared state, destroys the shared state. Otherwise does nothing.