|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
命名哈希码结构体。 More...
#include <tools_nhash.h>
Public Member Functions | |
| nhashcode (int64_t ahashcode, int32_t aindex) | |
| 构造函数。 | |
| auto | operator<=> (const nhashcode &ar) const |
| 三路比较运算符。 | |
Public Attributes | |
| int64_t | m_hashcode = 0 |
| 原始typeid(T).hash_code()值 | |
| int32_t | m_index = 0 |
| 相同hash_code值的冲突消歧索引 | |
命名哈希码结构体。
组合原始hash_code和冲突消歧索引,形成唯一的类型标识。 支持三路比较运算符用于有序容器存储。
|
inline |
构造函数。
| ahashcode | 原始哈希码 |
| aindex | 冲突消歧索引 |
|
inline |
三路比较运算符。
先比较hash_code,相同则比较index。