展开

开发者手册

C++规律表达 | Regular expressionsstd::swap(std::match_results)

STD::交换%28 std::Match[医]结果%29

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。