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)
.
lhs, rhs | - | polymorphic function wrappers whose states to swap |
(none).
(none) | (until C++17) |
noexcept specification: noexcept | (since C++17) |
swaps the contents (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/functional/function/swap2