libstdc++
Diagnostics
Collaboration diagram for Diagnostics:

Modules

 Exceptions
 

Classes

class  std::_V2::error_category
 
class  std::error_code
 
class  std::error_condition
 
struct  std::is_error_code_enum< _Tp >
 
struct  std::is_error_condition_enum< _Tp >
 

Functions

const error_categorystd::generic_category () noexcept
 
error_code make_error_code (errc __e) noexcept
 
error_condition make_error_condition (errc __e) noexcept
 
bool operator!= (const error_code &__lhs, const error_code &__rhs) noexcept
 
bool operator!= (const error_code &__lhs, const error_condition &__rhs) noexcept
 
bool operator!= (const error_condition &__lhs, const error_code &__rhs) noexcept
 
bool operator!= (const error_condition &__lhs, const error_condition &__rhs) noexcept
 
bool operator< (const error_code &__lhs, const error_code &__rhs) noexcept
 
bool operator< (const error_condition &__lhs, const error_condition &__rhs) noexcept
 
template<typename _CharT , typename _Traits >
basic_ostream< _CharT, _Traits > & operator<< (basic_ostream< _CharT, _Traits > &__os, const error_code &__e)
 
bool operator== (const error_code &__lhs, const error_code &__rhs) noexcept
 
bool operator== (const error_code &__lhs, const error_condition &__rhs) noexcept
 
bool operator== (const error_condition &__lhs, const error_code &__rhs) noexcept
 
bool operator== (const error_condition &__lhs, const error_condition &__rhs) noexcept
 
const error_categorystd::system_category () noexcept
 

Variables

template<typename _Tp >
constexpr bool std::is_error_code_enum_v
 
template<typename _Tp >
constexpr bool std::is_error_condition_enum_v
 

Detailed Description

Components for error handling, reporting, and diagnostic operations.

Function Documentation

◆ generic_category()

const error_category & std::_V2::generic_category ( )
noexcept

Error category for errno error codes.

◆ make_error_code()

error_code make_error_code ( errc  __e)
related

Create an error_code representing a standard errc condition.

The std::errc constants correspond to errno macros and so use the generic category.

Since
C++11

Definition at line 298 of file system_error.

◆ make_error_condition()

error_condition make_error_condition ( errc  __e)
related

Create an error_condition representing a standard errc condition.

The std::errc constants correspond to errno macros and so use the generic category.

Since
C++11

Definition at line 430 of file system_error.

◆ operator!=() [1/4]

bool operator!= ( const error_code __lhs,
const error_code __rhs 
)
related

Definition at line 520 of file system_error.

◆ operator!=() [2/4]

bool operator!= ( const error_code __lhs,
const error_condition __rhs 
)
related

Definition at line 525 of file system_error.

◆ operator!=() [3/4]

bool operator!= ( const error_condition __lhs,
const error_code __rhs 
)
related

Definition at line 530 of file system_error.

◆ operator!=() [4/4]

bool operator!= ( const error_condition __lhs,
const error_condition __rhs 
)
related

Definition at line 535 of file system_error.

◆ operator<() [1/2]

bool operator< ( const error_code __lhs,
const error_code __rhs 
)
related

Ordered comparison for std::error_code.

This defines a total order by comparing the categories, and then if they are equal comparing the values.

Since
C++11

Definition at line 319 of file system_error.

◆ operator<() [2/2]

bool operator< ( const error_condition __lhs,
const error_condition __rhs 
)
related

Ordered comparison for std::error_condition.

This defines a total order by comparing the categories, and then if they are equal comparing the values.

Since
C++11

Definition at line 501 of file system_error.

◆ operator<<()

template<typename _CharT , typename _Traits >
basic_ostream< _CharT, _Traits > & operator<< ( basic_ostream< _CharT, _Traits > &  __os,
const error_code __e 
)
related

Write a std::error_code to an ostream.

Since
C++11

Definition at line 319 of file system_error.

◆ operator==() [1/4]

bool operator== ( const error_code __lhs,
const error_code __rhs 
)
related

Equality comparison for std::error_code.

Returns true only if they have the same category and the same value.

Since
C++11

Definition at line 444 of file system_error.

◆ operator==() [2/4]

bool operator== ( const error_code __lhs,
const error_condition __rhs 
)
related

Equality comparison for std::error_code and std::error_condition.

Uses each category's equivalent member function to check whether the values correspond to an equivalent error in that category.

Since
C++11

Definition at line 460 of file system_error.

◆ operator==() [3/4]

bool operator== ( const error_condition __lhs,
const error_code __rhs 
)
related

Definition at line 512 of file system_error.

◆ operator==() [4/4]

bool operator== ( const error_condition __lhs,
const error_condition __rhs 
)
related

Equality comparison for std::error_condition.

Returns true only if they have the same category and the same value.

Since
C++11

Definition at line 475 of file system_error.

◆ system_category()

const error_category & std::_V2::system_category ( )
noexcept

Error category for other error codes defined by the OS.

Variable Documentation

◆ is_error_code_enum_v

template<typename _Tp >
constexpr bool std::is_error_code_enum_v
inlineconstexpr

Definition at line 72 of file system_error.

◆ is_error_condition_enum_v

template<typename _Tp >
constexpr bool std::is_error_condition_enum_v
inlineconstexpr

Definition at line 75 of file system_error.