std:: swap (std::match_results)
|
定义于头文件
<regex>
|
||
|
template
<
class
BidirIt,
class
Alloc
>
void
swap
(
match_results
<
BidirIt,Alloc
>
&
x1,
|
(C++11 起) | |
为 std::swap 算法特化 std::match_results 。交换 x1 与 x2 的内容。实际调用 x1. swap ( x2 ) 。
目录 |
参数
| x1, x2 | - | 将被交换内容的 match_results 对象 |
| 类型要求 | ||
-
BidirIt
必须满足
LegacyBidirectionalIterator
的要求。
|
||
-
Alloc
必须满足
Allocator
的要求。
|
||
返回值
(无)
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
交换内容
(公开成员函数) |