public member function
<functional>

std::function::~function

~function();
Destroy function wrapper
Destroys the function object.

This destroys its target, and deallocates any storage allocated by the object.

Data races

Both the object and its target are modified.

Exception safety

No-throw guarantee: never throws exceptions.