std::copyable_function::swap
Min standard notice:
Exchanges the stored callable objects of *this and other.
# Declarations
void swap( copyable_function& other ) noexcept;
(since C++26)
# Parameters
other: function wrapper to exchange the stored callable object with
# Return value
(none)