The Wayback Machine - https://web.archive.org/web/20180428033459/http://zh.cppreference.com:80/w/cpp/regex/basic_regex/swap2

std::swap(std::basic_regex)

来自cppreference.com
< cpp‎ | regex‎ | 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 - 要交换的正则表达式

[编辑] 返回值

(无)

[编辑] 示例

[编辑] 参阅

交换内容
(公开成员函数) [编辑]