std::function インスタンスを破棄します。std::function が*空*でない場合、その*ターゲット*も破棄されます。
std::function
std::move_only_function