42 std::string exception_info;
70 Exception(
const std::string& exception_info) : exception_info(exception_info) {}
92 return exception_info.c_str();
141 return std::hash<int>()(
static_cast<int>(value));
157template <
typename T,
typename U>
194 return static_cast<U>(type);
Exception(const std::string &exception_info)
通用异常类的构造函数
const char * what() const noexcept override
获取异常的描述信息
unsigned short ushort
无符号短整型
unsigned int size_t
表示内存中对象的大小,经常用于表示数组长度、内存分配等涉及到大小的地方。
U operator()(const T &type) const
隐式类型转换仿函数重载括号运算符
std::size_t operator()(const T &value) const
枚举哈希仿函数重载括号运算符