Namespaces
Variants
Views
Actions

std::function::swap

From cppreference.com
< cpp‎ | utility‎ | functional‎ | function
Revision as of 20:14, 31 May 2013 by P12bot (Talk | contribs)

 
 
 
Function objects
Function wrappers
(C++11)
(C++11)
Bind
(C++11)
Reference wrappers
(C++11)(C++11)
Operator wrappers
Negators
Deprecated 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