std::function<R(Args...)>:: ~function
From cppreference.com
<
cpp
|
utility
|
functional
|
function
C++
Utilities library
|
|
Function objects
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
std::function
Member functions | ||||
function::~function
|
||||
(until C++17)
|
||||
Non-member functions | ||||
(until C++20)
|
||||
Helper classes | ||||
(until C++17)
|
||||
Deduction guides (C++17) |
~function
(
)
;
|
(since C++11) | |
Destroys the
std::function
instance. If the
std::function
is not
empty
, its
target
is destroyed also.
See also
destroys a
std::move_only_function
object
(public member function of
std::move_only_function
)
|
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/utility/functional/function/%7Efunction&oldid=134334
"