std::swap(std::match_results)

定义于头文件 <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 算法。交换 x1x2 的内容。等效地调用 x1.swap(x2)

目录

参数

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

返回值

(无)

示例

参阅

交换内容
(公开成员函数)

版本历史

  • (当前 | 先前 2017年9月23日 (六) 08:45Fruderica讨论 | 贡献. . (814字节) (-603). . (撤销)
  • 当前 | 先前 2014年10月26日 (日) 18:06P12bot讨论 | 贡献 . . (1,417字节) (0). . (Fix some translations) (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:13P12bot讨论 | 贡献 . . (1,417字节) (-68). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 11:59P12bot讨论 | 贡献 . . (1,485字节) (+297). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 09:07P12讨论 | 贡献 . . (1,188字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (1,188字节) (-55). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 15:33P12讨论 | 贡献 . . (1,243字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,243字节) (+1,243). . (Translated from the English version using Google Translate)