1 2 3 4 5 6 7 8 9 10 11 12 13
|
bool operator== (const error_condition& lhs, const error_condition& rhs) noexcept
{ return lhs.category()==rhs.category() && lhs.value()==rhs.value(); }
bool operator!= (const error_condition& lhs, const error_condition& rhs) noexcept
{ return !(lhs==rhs); }
bool operator< (const error_condition& lhs, const error_condition& rhs) noexcept
{ return lhs.category()<rhs.category() || lhs.category()==rhs.category()&&lhs.value()<rhs.value(); }
bool operator== (const error_condition& lhs, const error_code& rhs) noexcept
{ return lhs.category().equivalent(lhs.value,rhs) || rhs.category().equivalent(lhs,rhs.value()); }
bool operator== (const error_code& lhs, const error_condition& rhs) noexcept
{ return lhs.category().equivalent(lhs.value,rhs) || rhs.category().equivalent(lhs,rhs.value()); }
bool operator!= (const error_condition& lhs, const error_code& rhs) noexcept { return !(lhs==rhs); }
bool operator!= (const error_code& lhs, const error_condition& rhs) noexcept { return !(lhs==rhs); }
|