Namespaces
Variants

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

From cppreference.net
void swap ( function & other ) ;
(TS библиотечных основ)

Обменивается сохранёнными вызываемыми объектами * this и other .

Аллокаторы * this и other не обмениваются.

Поведение не определено, если * this - > get_memory_resource ( ) ! = * other. get_memory_resource ( ) .

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

Поведение не определено, если this - > get_allocator ( ) ! = other. get_allocator ( ) .

(library fundamentals TS v3)

Параметры

other - обёртка функции для обмена сохранённого вызываемого объекта с

Возвращаемое значение

(нет)