“cpp/error/error code/operator cmp”的版本间的差异

来自cppreference.com
< cpp‎ | error‎ | error code
(Translated from the English version using Google Translate)
 
P12讨论 | 贡献
(1个修订: Translate from the English version)

2012年10月25日 (四) 14:24的版本

 
 
 
 
 
<tr class="t-dsc-header"> <td>
在标头 <system_error> 定义
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
bool operator==( const error_code& lhs, const error_code& rhs );
</td>

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

<td >
bool operator!=( const error_code& lhs, const error_code& rhs );
</td>

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

<td >
bool operator<( const error_code& lhs, const error_code& rhs );
</td>

<td > (1) </td> <td > (C++11 起) </td> </tr>

。比较两个错误代码对象.
原文:
Compares two error code objects.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
1)
。比较lhsrhs平等.
原文:
Compares lhs and rhs for equality.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
2)
。比较lhsrhs平等.
原文:
Compares lhs and rhs for equality.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
3)
。检查是否lhs小于rhs.
原文:
Checks whether lhs is less than rhs.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

目录

。参数。

Template:param list begin Template:param list item Template:param list end

===。 返回值。===

1)
true如果错误类别和错误值相等的
原文:
{{{2}}}
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
|true if the error category and error value compare equal}}.}}
2)
true如果错误类别或错误值比较,是不相等
原文:
{{{2}}}
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
。|true if the error category or error value compare are not equal}}}}
3)
truelhs.category() < rhs.category()。否则,truelhs.category() == rhs.category() && lhs.value() < rhs.value()。否则,false
原文:
true if lhs.category() < rhs.category(). Otherwise, true if lhs.category() == rhs.category() && lhs.value() < rhs.value(). Otherwise, false
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

。例外。

noexcept 说明:  
noexcept
  

。例外。

noexcept 说明:  
noexcept
  

。另请参阅。

Template:cpp/error/error code/dcl list category