std::swap(std::basic_regex)

template< class CharT, class Traits >
void swap( basic_regex<CharT,Traits> &lhs, basic_regex<CharT,Traits> &rhs ) noexcept;
(C++11 起)

std::basic_regex 特化 std::swap 算法。交换 lhsrhs 的状态。等效地调用 lhs.swap(rhs)

目录

参数

lhs, rhs - 要交换的正则表达式

返回值

(无)

示例

参阅

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

版本历史

  • (当前 | 先前 2017年9月27日 (三) 02:08Fruderica讨论 | 贡献. . (694字节) (-478). . (撤销)
  • 当前 | 先前 2014年10月26日 (日) 18:05P12bot讨论 | 贡献 . . (1,172字节) (0). . (Fix some translations) (撤销)
  • 当前 | 先前 2013年7月2日 (二) 09:30P12bot讨论 | 贡献 . . (1,172字节) (-70). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 12:37P12bot讨论 | 贡献 . . (1,242字节) (+281). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 09:06P12讨论 | 贡献 . . (961字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (961字节) (-47). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 15:32P12讨论 | 贡献 . . (1,008字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,008字节) (+1,008). . (Translated from the English version using Google Translate)