std::swap(std::function)
template< class R, class... Args > void swap( function<R(Args...)> &lhs, function<R(Args...)> &rhs ); | | |
---|
重载std::swap
算法std::function
.交换lhs
与...rhs
.有效地打电话lhs.swap(rhs)
...
参数
lhs, rhs | - | polymorphic function wrappers whose states to swap |
---|
返回值
%280%29
例外
(none) | (until C++17) |
---|---|
noexcept specification: noexcept | (since C++17) |
例
另见
swap | swaps the contents (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com