Namespaces
Variants

std::experimental::function<R(Args...)>:: swap

From cppreference.net
void swap ( function & other ) ;
(TS de biblioteca fundamentals)

Intercambia los objetos invocables almacenados de * this y other .

Los asignadores de * this y other no son intercambiados.

El comportamiento es indefinido si * this - > get_memory_resource ( ) ! = * other. get_memory_resource ( ) .

(library fundamentals TS)
(until library fundamentals TS v3)

El comportamiento es indefinido si this - > get_allocator ( ) ! = other. get_allocator ( ) .

(library fundamentals TS v3)

Parámetros

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

Valor de retorno

(ninguno)