It overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
DeclarationFollowing is the declaration for std::swap.
template< class R, class... Args > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs );C++11
template< class R, class... Args > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs );Parameters
lhs, rhs − It is a polymorphic function wrappers whose states to swap.
Return Valuenone
Exceptionsnone
functional.htm
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4