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) |
---|
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com