std::swap<div class="t-tr-text">(性病::的match_results)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig">(std::match_results)</div><div class="t-tr-dropdown-notes">这段文字是通过 [http://translate.google.com Google Translate] 自动翻译生成的。<br/>您可以帮助我们检查、纠正翻译中的错误。详情请点击[http://en.cppreference.com/w/Cppreference:MachineTranslations 这里]。</div></div></div></div></div>
来自cppreference.com
< cpp | regex | match results
![]() |
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <regex> 中定义
|
||
template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, |
(C++11 起) | |
专为std::swapstd::match_results算法。交流
x1
内容与那些x2
。有效地调用x1.swap(x2).原文:
Specializes the std::swap algorithm for std::match_results. Exchanges the contents of
x1
with those of x2
. Effectively calls x1.swap(x2).目录 |
[编辑] 参数
x1, x2 | - | 对match_results对象,其内容将被交换
原文: the match_results objects whose contents will be swapped |
类型要求 | ||
-BidirIt 必须满足 BidirectionalIterator 的要求。
| ||
-Alloc 必须满足 Allocator 的要求。
|
[编辑] 返回值
(无)
[编辑] 例外
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
交换的内容 (公共成员函数) |