Aracılığıyla paylaş


<system_error> işleçleri

operator==

İşlecin sol tarafındaki nesnenin sağ taraftaki nesneye eşit olup olmadığını sınar.

bool operator==(const error_code& left,
    const error_condition& right);

bool operator==(const error_condition& left,
    const error_code& right);

bool operator==(const error_condition& left,
    const error_condition& right);

Parametreler

Sol
Eşitlik için test edilecek nesne.

Doğru
Eşitlik için test edilecek nesne.

İade Değeri

true nesneler eşitse; false nesneler eşit değilse.

Açıklamalar

Bu işlev döndürür left.category() == right.category() && left.value() == right.value().

operator!=

İşlecin sol tarafındaki nesnenin sağ taraftaki nesneye eşit olup olmadığını sınar.

bool operator!=(const error_code& left, const error_condition& right);
bool operator!=(const error_condition& left, const error_code& right);
bool operator!=(const error_code& left, const error_code& right);
bool operator!=(const error_condition& left, const error_condition& right);

Parametreler

Sol
Eşitsizlik için test edilecek nesne.

Doğru
Eşitsizlik için test edilecek nesne.

İade Değeri

truesoldan geçirilen nesne sağdan geçirilen nesneye eşit değilse; aksi takdirde false.

Açıklamalar

Bu işlev döndürür !(left == right).

operator<

Bir nesnenin karşılaştırma için içeri geçirilen nesneden küçük olup olmadığını sınar.

template <class _Enum>
inline bool operator<(
    _Enum left,
    typename enable_if<is_error_code_enum<_Enum>::value,
    const error_code&>::type right);

template <class _Enum>
inline bool operator<(
    typename enable_if<is_error_code_enum<_Enum>::value,
    const error_code&>::type left, _Enum right);

template <class _Enum>
inline bool operator<(
    _Enum left,
    typename enable_if<is_error_condition_enum<_Enum>::value,
    const error_condition&>::type right);

template <class _Enum>
inline bool operator<(
    typename enable_if<is_error_condition_enum<_Enum>::value,
    const error_condition&>::type left, _Enum right);

Parametreler

Sol
Karşılaştırılacak nesne.

Doğru
Karşılaştırılacak nesne.

İade Değeri

truesoldan geçirilen nesne sağdan geçirilen nesneden küçükse; Aksi takdirde , false.

Açıklamalar

Bu işlev hata sıralamasını sınar.

operator<<

template <class charT, class traits>
    basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const error_code& ec);