std::swap(std::function) (3) Linux Manual Page
std::swap(std::function) – std::swap(std::function) Synopsis template <class R, class… Args> (since C++ 11) void swap(function<R(Args…)> &lhs, function<R(Args…)> &rhs); (until C++ 17) template <class R, class… Args> (since C++ 17) void swap(function<R(Args…)> &lhs, function<R(Args…)> &rhs) noexcept; Overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). Parameters lhs, rhs…
