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