std::experimental::function::swap

From cppreference.com
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math TR)
 
 
 
void swap( function& other );
(library fundamentals TS)

Exchanges the stored callable objects of *this and other.

The allocators of *this and other are not exchanged.

The behavior is undefined if *this->get_memory_resource() != *other.get_memory_resource().

Parameters

other - function wrapper to exchange the stored callable object with

Return value

(none)