Namespaces
Variants

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

From zh.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)

参数

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

返回值

(无)