std::function::~function

From Cppreference

Jump to: navigation, search
~function();
(since C++11)

Destroys the std::function instance. If the stored callable is valid, it is destroyed also.

[edit] Exceptions

noexcept specification:  
noexcept

  (since C++11)