C++ Functional Library - Swap
Description
It exchanges the stored callable objects of *this and other.
Declaration
Following is the declaration for std::function::swap.
void swap( function& other );
C++11
void swap( function& other );
Parameters
other − It is a function wrapper to exchange the stored callable object with.
Return Value
none
Exceptions
No-noexcept − this member function never throws exceptions.
functional.htm
Advertisements