Scroll to navigation

std::copyable_function::~copyable_function(3) C++ Standard Libary std::copyable_function::~copyable_function(3)

NAME

std::copyable_function::~copyable_function - std::copyable_function::~copyable_function

Synopsis

~copyable_function(); (since C++26)

Destroys the std::copyable_function object. If the std::copyable_function is not empty, its target is also destroyed.

See also

destructor destroys a std::function instance
(public member function of std::function<R(Args...)>) destructor destroys a std::move_only_function object
(public member function of std::move_only_function)

2026.11.10 http://cppreference.com