Namespaces
Variants

std::copyable_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 ( copyable_function & other ) noexcept ;
(seit C++26)

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...)> )
tauscht die Ziele zweier std::move_only_function -Objekte
(öffentliche Elementfunktion von std::move_only_function )