std::swap(std::match_results)
来自cppreference.com
< cpp | regex | match results
| 定义于头文件 <regex>
|
||
| template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, |
(C++11 起) | |
为 std::match_results 特化 std::swap 算法。交换 x1 与 x2 的内容。等效地调用 x1.swap(x2) 。
参数
| x1, x2 | - | 要交换内容的 match_results 对象 |
| 类型要求 | ||
-BidirIt 必须满足老式双向迭代器 (LegacyBidirectionalIterator) 的要求。
| ||
-Alloc 必须满足分配器 (Allocator) 的要求。
| ||
返回值
(无)
示例
| 本节未完成 原因:暂无示例 |
参阅
| 交换内容 (公开成员函数) |