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

来自cppreference.com
 
 
实验性
技术规范
文件系统库(文件系统 TS)
库基础(库基础 TS)
库基础 2(库基础 TS v2)
库基础 3(库基础 TS v3)
并行扩展(并行 TS)
并行扩展 2(并行 TS v2)
并发扩展(并发 TS)
并发扩展 2(并发 TS v2)
概念(概念 TS)
范围(范围 TS)
反射(反射 TS)
数学特殊函数(特殊函数 TR)
实验性非 TS 功能特性
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
 
void swap( function& other );
(库基础 TS)

交换 *thisother 存储的可调用对象。

不交换 *thisother 的分配器。

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

(库基础 TS)
(库基础 TS v3 前)

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

(库基础 TS v3)

[编辑]参数

other - 要与之交换存储可调用对象的函数包装器

[编辑]返回值

(无)

close