W3cubDocs

/C++

std::regex_error::code

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.

See also

(C++11)
describes different types of matching errors
(typedef)
constructs a regex_error object
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/regex/regex_error/code