cppreference.com
搜索
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::
swap
(std::basic_regex)
来自cppreference.com
<
cpp
|
regex
|
basic regex
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
[编辑]
正则表达式库
类
basic_regex
(C++11)
sub_match
(C++11)
match_results
(C++11)
算法
regex_match
(C++11)
regex_search
(C++11)
regex_replace
(C++11)
迭代器
regex_iterator
(C++11)
regex_token_iterator
(C++11)
异常
regex_error
(C++11)
特性
regex_traits
(C++11)
常量
syntax_option_type
(C++11)
match_flag_type
(C++11)
error_type
(C++11)
正则表达式文法
Modified ECMAScript-262
(C++11)
[编辑]
std::basic_regex
成员函数
basic_regex::basic_regex
basic_regex::~basic_regex
basic_regex::operator=
basic_regex::assign
观察器
basic_regex::mark_count
basic_regex::flags
本地环境
basic_regex::getloc
basic_regex::imbue
修改器
basic_regex::swap
常量
basic_regex 常量
非成员函数
swap
(std::basic_regex)
推导指引
(C++17)
[编辑]
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
算法。交换
lhs
与
rhs
的状态。等效地调用
lhs.
swap
(
rhs
)
。
目录
1
参数
2
返回值
3
示例
4
参阅
[
编辑
]
参数
lhs, rhs
-
要交换的正则表达式
[
编辑
]
返回值
(无)
[
编辑
]
示例
本节未完成
原因:暂无示例
[
编辑
]
参阅
swap
交换内容
(公开成员函数)
[编辑]
1个分类
:
Todo no example