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 ;
(desde C++26)

Intercambia los objetos invocables almacenados de * this y other .

Parámetros

other - contenedor de función para intercambiar el objeto invocable almacenado con

Valor de retorno

(ninguno)

Véase también

intercambia los contenidos
(función miembro pública de std::function<R(Args...)> )
intercambia los objetivos de dos objetos std::move_only_function
(función miembro pública de std::move_only_function )