std::experimental::function<R(Args...)>::swap
来自 cppreference.cn
< cpp | experimental | function
void swap( function& other ); |
(library fundamentals TS) | |
交换 *this 和 other 中存储的可调用对象。
*this 和 other 的分配器不会被交换。
如果 *this->get_memory_resource() != *other.get_memory_resource(),则行为未定义。 |
(library fundamentals TS) (until library fundamentals TS v3) |
如果 this->get_allocator() != other.get_allocator(),则行为未定义。 |
(library fundamentals TS v3) |
[edit] 参数
other | - | 用于交换存储的可调用对象的 function 包装器 |
[edit] 返回值
(无)