std::move_only_function<R(Args...) cv ref noexcept(noex)>::swap

void swap( move_only_function& other ) noexcept;
(C++23 起)

交换 *thisother 存储的可调用对象。

参数

other - 要与之交换存储的可调用对象的函数包装

返回值

(无)

参阅

交换内容
(std::function<R(Args...)> 的公开成员函数)