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

std::swap(std::match_results)

Defined in header <regex>

?

?

template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, match_results<BidirIt,Alloc>& x2 );

?

(since C++11)

专攻std::swap算法std::match_results.交换x1和那些x2.有效地打电话x1.swap(x2)...

参数

x1, x2

-

the match_results objects whose contents will be swapped

类型要求

-Bidirit必须符合双向迭代器的要求。

-分配器必须符合分配器的要求。

返回值

%280%29

例外

noexcept规格:

noexcept

另见

swap

swaps the contents (public member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com