|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
错误码 更多...
#include <error_code.hpp>
Public 成员函数 | |
| error_code () noexcept=default | |
| 默认构造函数 | |
| error_code (int val, const error_category &cat) noexcept | |
| 构造函数 | |
| error_code (errc e) noexcept | |
| 从 errc 枚举构造 | |
| void | assign (int val, const error_category &cat) noexcept |
| 赋值错误码值和类别 | |
| void | clear () noexcept |
| 清空错误码 | |
| int | value () const noexcept |
| 获取错误码值 | |
| errc | error () const noexcept |
| 获取对应 errc 枚举值 | |
| const error_category & | category () const noexcept |
| 获取错误类别 | |
| error_condition | default_error_condition () const noexcept |
| 获取对应的默认错误条件 | |
| string | message () const |
| 获取错误描述信息 | |
| operator bool () const noexcept | |
| 布尔转换 | |
| bool | operator== (const error_condition &cond) const noexcept |
| 与错误条件进行等价比较 | |
| bool | operator!= (const error_condition &cond) const noexcept |
| 与错误条件进行不等价比较 | |
| Public 成员函数 继承自 neforce::icomparable< error_code > | |
| constexpr bool | operator== (const error_code &rhs) const noexcept(noexcept(derived().equal_to(rhs))) |
| 相等比较运算符 | |
| constexpr bool | operator!= (const error_code &rhs) const noexcept(noexcept(!(derived().equal_to(rhs)))) |
| 不等比较运算符 | |
| constexpr bool | operator< (const error_code &rhs) const noexcept(noexcept(derived().less_than(rhs))) |
| 小于比较运算符 | |
| constexpr bool | operator> (const error_code &rhs) const noexcept(noexcept(rhs.less_than(derived()))) |
| 大于比较运算符 | |
| constexpr bool | operator<= (const error_code &rhs) const noexcept(noexcept(!(rhs.less_than(derived())))) |
| 小于等于比较运算符 | |
| constexpr bool | operator>= (const error_code &rhs) const noexcept(noexcept(!(derived().less_than(rhs)))) |
| 大于等于比较运算符 | |
| Public 成员函数 继承自 neforce::ihashable< error_code > | |
| constexpr size_t | to_ihash () const noexcept(noexcept(derived().to_hash())) |
| 获取对象的哈希值 | |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
|
inlineexplicitnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |