std::experimental::function<R(Args...)>::swap
使用
polymorphic_allocator
的容器的便利类型别名
|
||||
内存资源类 | ||||
全局内存资源 | ||||
既存类的类型擦除分配器支持 | ||||
void
swap(
function&
other );
|
(库基础 TS) | |
交换 *this 和
other
的存储可调用对象。
不交换 *this 与
other
的分配器。
若 *this->get_memory_resource() != *other.get_memory_resource() 则行为未定义。 |
(库基础
TS) (库基础 TS v3 前) |
若 this->get_allocator() != other.get_allocator() 则行为未定义。 |
(库基础 TS v3) |
参数
other | - | 要与之交换存储可调用对象的函数包装器 |
返回值
(无)