首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券