std::regex_error::code

Header: <regex>

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

# Declarations

std::regex_constants::error_type code() const;

(since C++11)

# See also