template< class R, class... Args > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs ); |
Overloads the std::swap algorithm for std::function. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
Parameters
| lhs, rhs | - | polymorphic function wrappers whose states to swap |
Return value
(none).
Exceptions
(none).
Example
See also
| swaps the contents (public member function) |
Please login to continue.