Namespaces
Variants

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

From cppreference.net
void swap ( function & other ) ;
(spécifications techniques des bibliothèques fondamentales)

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

Les allocateurs de * this et other ne sont pas échangés.

Le comportement est indéfini si * this - > get_memory_resource ( ) ! = * other. get_memory_resource ( ) .

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

Le comportement est indéfini si this - > get_allocator ( ) ! = other. get_allocator ( ) .

(library fundamentals TS v3)

Paramètres

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

Valeur de retour

(aucun)