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