std::error_category::operator==,!=,<
bool operator==( const error_category& rhs ) const noexcept;
|
(1) |
(C++11 起) |
bool operator!=( const error_category& rhs ) const noexcept;
|
(2) |
(C++11 起) |
bool operator<( const error_category& rhs ) const noexcept;
|
(3) |
(C++11 起) |
|
|
|
与另一 error_category 比较。
1) 检查 *this 与 rhs
是否指代同一对象。
2) 检查 *this 与 rhs
是否不指代同一对象。
3) 按
this 与
&rhs 的顺序排序
*this 与
rhs
。等价于
std::less<const error_category*>()(this, &rhs) 。
参数
rhs
|
-
|
指定要比较的 error_category
|
返回值
1) 若 *this 与 rhs
指代同一对象,则为 true ,否则为 false 。
2) 若 *this 与 rhs
不指代同一对象,则为 true ,否则为 false 。
3) 若按 this
与 &rhs 的顺序, *this 小于 rhs
则为 true 。
版本历史
(当前 | 先前) 2017年6月6日 (二) 08:21 Fruderica(讨论 | 贡献) . . (1,182字节) (-1,057) . . (撤销)
(当前 | 先前) 2013年7月2日 (二) 08:02 P12bot(讨论 | 贡献) 小 . . (2,239字节) (-128) . . (撤销)
(当前 | 先前) 2012年11月2日 (五) 15:36 P12bot(讨论 | 贡献) 小 . . (2,367字节) (+361) . . (撤销)
(当前 | 先前) 2012年10月26日 (五) 10:35 P12(讨论 | 贡献) 小 . . (2,006字节) (0) . . (撤销)
(当前 | 先前) 2012年10月26日 (五) 06:00 TranslationBot(讨论 | 贡献) . . (2,006字节) (-55) . . (撤销)
(当前 | 先前) 2012年10月25日 (四) 13:24 P12(讨论 | 贡献) 小 . . (2,061字节) (0) . . (撤销)
(当前 | 先前) 2012年10月25日 (四) 12:00 TranslationBot(讨论 | 贡献) . . (2,061字节) (+2,061) . .