##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::regex_error::code

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

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

Returns the std::regex_constants::error_type that was passed to the std::regex_error constructor.

### [edit] See Also

error_type (C++11) | describes different types of matching errors (typedef) [edit]
(constructor) | constructs a `regex_error` object (public member function) [edit]

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