std::regex_error::regex_error
来自cppreference.com
< 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) |