public member function
<future>

std::future::~future

~future();
Destroy future
Destroys the future object.

If the object is valid (i.e., it has access to a shared state), it is disassociated from it. If it was the only object associated to the shared state, the shared state is itself also destroyed.

Exception safety

No-throw guarantee: never throws exceptions.