All Error-Code Facilities
All Error-Code Facilities
A compact index of non-throwing error reporting facilities centered on <system_error> and adjacent standard-library types.
All Error-Code Facilities
A compact index of non-throwing error reporting facilities centered on <system_error> and adjacent standard-library types.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
<system_error>std::error_codestd::error_conditionstd::error_categorystd::system_errorstd::errcstd::make_error_codestd::make_error_conditionstd::filesystem::filesystem_errorstd::error_code&error_code out-parameter overloads for non-throwing control flowstd::error_code when local branching is expected and exceptions would be noise.error_category.int main() {
// Pick one facility from this reference page.
// Write the smallest program that exercises its main precondition,
// complexity rule, or lifetime constraint before scaling up.
return 0;
}