Namespaces
Variants

std::move_only_function:: ~move_only_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* )
~move_only_function ( ) ;
(自 C++23 起)

销毁 std::move_only_function 对象。若该 std::move_only_function 非空,其目标对象也将被销毁。

参见

销毁 std::function 实例
( std::function<R(Args...)> 的公开成员函数)