Namespaces
Variants

std::experimental::function<R(Args...)>:: swap

From cppreference.net
void swap ( function & other ) ;
(库基础技术规范)

交换 * this other 所存储的可调用对象。

* this other 的分配器不会进行交换。

* this - > get_memory_resource ( ) ! = * other. get_memory_resource ( ) 则行为未定义。

(库基础技术规范)
(直至库基础技术规范 v3)

this - > get_allocator ( ) ! = other. get_allocator ( ) 则行为未定义。

(库基础技术规范 v3)

参数

其他 - 用于交换存储的可调用对象的函数包装器

返回值

(无)