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

Échange les objets appelables stockés de * this et other .

Paramètres

autre - fonction wrapper pour échanger l'objet appelable stocké avec

Valeur de retour

(aucun)

Voir aussi

échange le contenu
(fonction membre publique de std::function<R(Args...)> )