std::copyable_function:: swap
From cppreference.net
<
cpp
|
utility
|
functional
|
copyable function
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function objects
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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
)
|