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 ;
(seit C++23)

Tauscht die gespeicherten aufrufbaren Objekte von * this und other aus.

Parameter

other - Funktionswrapper zum Austausch des gespeicherten aufrufbaren Objekts mit

Rückgabewert

(keine)

Siehe auch

tauscht die Inhalte aus
(öffentliche Elementfunktion von std::function<R(Args...)> )