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