regex_error::code

regex_constants::error_code code() const;

The member function returns the value that was passed to the object's constructor.