std::function::swap

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function
 
 
 
Function objects


Function wrappers
(C++11)
(C++11)
(C++17)
Bind
(C++11)
Reference wrappers
(C++11)(C++11)
Operator wrappers
Negators
(deprecated)
(deprecated)

(deprecated)
(deprecated)
Searchers
Old binders and adaptors
(until C++17)
(until C++17)
(until C++17)
(until C++17)
(until C++17)(until C++17)(until C++17)(until C++17)
(until C++17)(until C++17)
(until C++17)(until C++17)

(until C++17)
(until C++17)(until C++17)(until C++17)(until C++17)
 
 
void swap( function& other );
(since C++11)

Exchanges the stored callable objects of *this and other.

Parameters

other - function wrapper to exchange the stored callable object with

Return value

(none)

Exceptions

noexcept specification:  
noexcept