std::experimental::function<R(Args...)>::swap
来自cppreference.com
< cpp | experimental | function
| void swap( function& other ); |
(库基础 TS) | |
交换 *this 和 other 的存储可调用对象。
不交换 *this 与 other 的分配器。
若 *this->get_memory_resource() != *other.get_memory_resource() 则行为未定义。
参数
| other | - | 要与之交换存储可调用对象的函数包装器 |
返回值
(无)