std::swap(std::basic_regex)
来自 cppreference.cn
< 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::swap 算法为 std::basic_regex 重载。 交换 lhs 的状态与 rhs 的状态。 有效地调用 lhs.swap(rhs)。
目录 |
[编辑] 参数
lhs, rhs | - | 要交换的正则表达式 |
[编辑] 返回值
(无)
[编辑] 示例
本节内容不完整 原因:没有示例 |
[编辑] 参见
交换内容 (公开成员函数) |