Namespaces
Variants
Views
Actions

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)
Concepts (concepts TS)
Extensions for concurrency (concurrency TS)
 
 
 
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().

[edit] Parameters

other - function wrapper to exchange the stored callable object with

[edit] Return value

(none)