std::copyable_function::swap
来自cppreference.com
|
| ||||||||||||||||
|
| ||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
| 旧式绑定器与适配器 | |||||||||||||||||
|
|
void swap( copyable_function& other ) noexcept;
|
(C++26 起) | |
互换 *this 和 other 中存储的可调用对象。
| other | - | 要与之互换存储的可调用对象的函数包装器 |
(无)
| 交换内容 ( std::function<R(Args...)> 的公开成员函数) [编辑]
| |
交换两个 std::move_only_function 对象的目标 ( std::move_only_function 的公开成员函数) [编辑]
|