Namespaces
Variants

std::regex_error:: regex_error

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
定义于头文件 <regex>
(1) (C++11 起)
regex_error ( const regex_error & other ) ;
(2) (C++11 起)
1) 构造一个具有给定类型为 std::regex_constants::error_type ecode regex_error
2) 复制构造函数。使用 other 的内容进行初始化。若 * this other 均具有动态类型 std::regex_error ,则满足 std:: strcmp ( what ( ) , other. what ( ) ) == 0

参数

ecode - 表示正则表达式解析过程中引发错误的错误代码
other - 要复制的另一个 regex_error 对象

参见

(C++11)
描述不同类型的匹配错误
(typedef)