Namespaces
Variants

std::move_only_function:: swap

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
void swap ( move_only_function & other ) noexcept ;
(C++23以降)

格納されている呼び出し可能オブジェクトを * this other で交換します。

パラメータ

その他 - 格納された呼び出し可能オブジェクトを交換するための関数ラッパー

戻り値

(なし)

関連項目

内容を交換する
( std::function<R(Args...)> の公開メンバ関数)