std::regex_error:: regex_error
From cppreference.net
<
cpp
|
regex
|
regex error
|
定义于头文件
<regex>
|
||
|
regex_error
(
std::
regex_constants
::
error_type
ecode
)
;
|
(1) | (C++11 起) |
|
regex_error
(
const
regex_error
&
other
)
;
|
(2) | (C++11 起) |
2)
复制构造函数。使用
other
的内容进行初始化。若
*
this
与
other
均具有动态类型
std::regex_error
,则满足
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
。
参数
| ecode | - | 表示正则表达式解析过程中引发错误的错误代码 |
| other | - |
要复制的另一个
regex_error
对象
|
参见
|
(C++11)
|
描述不同类型的匹配错误
(typedef) |