Namespaces
Variants
Views
Actions

std::error_category::operator==,!=,<

From cppreference.com
< cpp‎ | error‎ | error category
Revision as of 15:34, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td >
bool operator==( const error_category& rhs ) const;
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator!=( const error_category& rhs ) const;
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator<( const error_category& rhs ) const;
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Compares to another error category.

1) Checks whether *this and rhs refer to the same object.
2) Checks whether *this and rhs do not refer to the same object.
3) Orders *this and rhs by the order of this and &rhs. Equivalent to std::less<const error_category*>()(this, &rhs).

Parameters

code - specifies the error code to compare
condition - specifies the error condition to compare

Return value

1) true if *this and rhs refer to the same object, false otherwise.
2) true if *this and rhs do not refer to the same object, false otherwise.
3) true if *this is less than rhs as defined by the order of this and &rhs.

Exceptions

noexcept specification:  
noexcept