libstdc++
std::error_condition Class Reference

Public Member Functions

template<typename _ErrorConditionEnum , typename = typename enable_if<is_error_condition_enum<_ErrorConditionEnum>::value>::type>
 error_condition (_ErrorConditionEnum __e) noexcept
 
 error_condition (int __v, const error_category &__cat) noexcept
 
void assign (int __v, const error_category &__cat) noexcept
 
const error_categorycategory () const noexcept
 
void clear () noexcept
 
string message () const
 
 operator bool () const noexcept
 
template<typename _ErrorConditionEnum >
enable_if< is_error_condition_enum< _ErrorConditionEnum >::value, error_condition & >::type operator= (_ErrorConditionEnum __e) noexcept
 
int value () const noexcept
 

Related Symbols

(Note that these are not member symbols.)

error_condition make_error_condition (errc __e) 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_condition &__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
 

Detailed Description

Class error_condition

This class represents error conditions that may be visible at an API boundary. Different error_code values that can occur within a library or module might map to the same error_condition.

An error_condition represents something that the program can test for, and subsequently take appropriate action.

Since
C++11

Definition at line 297 of file system_error.

Constructor & Destructor Documentation

◆ error_condition() [1/3]

std::error_condition::error_condition ( )
inlinenoexcept

Definition at line 300 of file system_error.

◆ error_condition() [2/3]

std::error_condition::error_condition ( int  __v,
const error_category __cat 
)
inlinenoexcept

Definition at line 303 of file system_error.

◆ error_condition() [3/3]

template<typename _ErrorConditionEnum , typename = typename enable_if<is_error_condition_enum<_ErrorConditionEnum>::value>::type>
std::error_condition::error_condition ( _ErrorConditionEnum  __e)
inlinenoexcept

Definition at line 308 of file system_error.

Member Function Documentation

◆ assign()

void std::error_condition::assign ( int  __v,
const error_category __cat 
)
inlinenoexcept

Definition at line 312 of file system_error.

◆ category()

const error_category & std::error_condition::category ( ) const
inlinenoexcept

Definition at line 334 of file system_error.

◆ clear()

void std::error_condition::clear ( )
inlinenoexcept

Definition at line 326 of file system_error.

◆ message()

string std::error_condition::message ( ) const
inline

Definition at line 338 of file system_error.

◆ operator bool()

std::error_condition::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 341 of file system_error.

◆ operator=()

template<typename _ErrorConditionEnum >
enable_if< is_error_condition_enum< _ErrorConditionEnum >::value, error_condition & >::type std::error_condition::operator= ( _ErrorConditionEnum  __e)
inlinenoexcept

Definition at line 322 of file system_error.

◆ value()

int std::error_condition::value ( ) const
inlinenoexcept

Definition at line 331 of file system_error.


The documentation for this class was generated from the following file: