Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::regex_error::code

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

NotebookLM
Defined in header <regex>
(since C++11)

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

See also

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.