std::function::swap

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function
 
 
 
Function objects
Function wrappers
(C++11)
(C++11)
Bind
(C++11)
(C++11)
(C++11)
Reference wrappers
(C++11)(C++11)
Operator wrappers
Negators
Deprecated binders and adaptors
(deprecated)
(deprecated)
(deprecated)
(deprecated)
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)(deprecated)
(deprecated)(deprecated)
 
 
void swap( function& other );
(since C++11)

Exchanges the stored callable objects of *this and other.

[edit] Parameters

other - function wrapper to exchange the stored callable object with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept