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) 检查 *thisrhs 是否指代同一对象。
2) 检查 *thisrhs 是否不指代同一对象。
3)this&rhs 的顺序排序 *thisrhs 。等价于 std::less<const error_category*>()(this, &rhs)

参数

rhs - 指定要比较的 error_category

返回值

1)*thisrhs 指代同一对象,则为 true ,否则为 false
2)*thisrhs 不指代同一对象,则为 true ,否则为 false
3) 若按 this&rhs 的顺序, *this 小于 rhs 则为 true

版本历史

  • (当前 | 先前 2017年6月6日 (二) 08:21Fruderica讨论 | 贡献. . (1,182字节) (-1,057). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 08:02P12bot讨论 | 贡献 . . (2,239字节) (-128). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 15:36P12bot讨论 | 贡献 . . (2,367字节) (+361). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 10:35P12讨论 | 贡献 . . (2,006字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (2,006字节) (-55). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月25日 (四) 13:24P12讨论 | 贡献 . . (2,061字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (2,061字节) (+2,061). . (Translated from the English version using Google Translate)