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