命名空间
变体
操作

std::swap(std::match_results)

来自 cppreference.cn
< cpp‎ | regex‎ | match results
 
 
 
正则表达式库
(C++11)
算法
迭代器
异常
特性
常量
(C++11)
正则表达式语法
 
 
定义于头文件 <regex>
template< class BidirIt, class Alloc >

void swap( match_results<BidirIt,Alloc>& x1,

           match_results<BidirIt,Alloc>& x2 ) noexcept;
(始于 C++11)

为 std::match_results 特化 std::swap 算法。交换 x1 与 x2 的内容。效果上等价于调用 x1.swap(x2)。

内容

[编辑] 参数

x1, x2 - 内容将被交换的 match_results 对象
类型要求
-
BidirIt 必须满足 LegacyBidirectionalIterator 的要求。
-
Alloc 必须满足 Allocator 的要求。

[编辑] 返回值

(无)

[编辑] 示例

[编辑] 参见

交换内容
(公开成员函数) [编辑]