std::copyable_function::swap
From cppreference.com
< cpp | utility | functional | copyable function
| void swap( copyable_function& other ) noexcept; |
(C++26以降) | |
*this と other の格納されている呼び出し可能オブジェクトを交換します。
[編集] パラメータ
| その他 | - | 格納されている呼び出し可能オブジェクトを交換する関数ラッパー |
[編集] 戻り値
(なし)
[編集] 関連項目
| 内容を交換する (public member function of std::function<R(Args...)>) | |
2つの std::move_only_function オブジェクトのターゲットをスワップする(public member function of std::move_only_function) |