# std::regex_error::regex_error

From cppreference.com
< cpp‎ | regex‎ | regex error

Defined in header `<regex>` |  |
regex_error(std::regex_constants::error_type ecode); |  | (since C++11)

Constructs a `regex_error` with a given `ecode` of type std::regex_constants::error_type .

### See Also

error_type (C++11) | describes different types of matching errors (typedef)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/regex/regex_error/regex_error&oldid=65357"