Namespaces
Variants

std::function<R(Args...)>:: ~function

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
~function ( ) ;
(C++11부터)

std::function 인스턴스를 파괴합니다. 만약 std::function 비어 있지 않은 경우, 해당 대상 도 함께 파괴됩니다.

참고 항목

std::move_only_function 객체를 파괴합니다
( std::move_only_function 의 public member function)