std::experimental::function<R(Args...)>::swap
來自 cppreference.com
< cpp | experimental | function
void swap( function& other ); |
(庫基礎 TS) | |
交換 *this 和 other 中儲存的可呼叫物件。
不交換 *this 和 other 的分配器。
如果 *this->get_memory_resource() != *other.get_memory_resource(),則行為未定義。 |
(庫基礎 TS) (直到 library fundamentals TS v3) |
如果 this->get_allocator() != other.get_allocator(),則行為未定義。 |
(庫基礎 TS v3) |
[編輯] 引數
其他 | - | 用於交換所儲存的可呼叫物件的函式包裝器 |
[編輯] 返回值
(無)