(性病:: ERROR_CODE)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig">(std::error_code)</div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div> - cppreference.com" /> std::operator==,!=,<<div class="t-tr-text">(性病:: ERROR_CODE)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig">(std::error_code)</div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div> - cppreference.com

std::operator==,!=,<<div class="t-tr-text">(性病:: ERROR_CODE)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">原文:</div><div class="t-tr-dropdown-orig">(std::error_code)</div><div class="t-tr-dropdown-notes">文本通过[http://translate.google.com 谷歌翻译]机器翻译。<br/>你可以帮忙校正和验证翻译。点击[[Cppreference:MachineTranslations|此处]]查看指示。</div></div></div></div></div>

来自cppreference.com
< cpp‎ | error‎ | error code
2012年10月26日 (五) 07:00TranslationBot讨论 | 贡献的版本

 
 
 
 
 
<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