MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
hash.hpp 文件参考

MSTL哈希函数库 更多...

hash.hpp 的引用(Include)关系图:

浏览该文件的源代码.

struct  hash< T * >
 指针类型的哈希函数特化 更多...
struct  is_nothrow_hashable< Key, Dummy >
 判断类型是否可无异常哈希 更多...
struct  is_hash< Func, Arg, Dummy >
 判断类型是否为有效的哈希函数 更多...

函数

MSTL_CONSTEXPR14 size_t FNV_hash (const byte_t *first, const size_t count) noexcept
 FNV-1a哈希算法
MSTL_CONSTEXPR14 size_t DJB2_hash (const char *str, const size_t len) noexcept
 DJB2哈希算法
uint32_t MurmurHash_x32 (const void *key, size_t len, uint32_t seed) noexcept
 MurmurHash3_x86_32算法

详细描述

MSTL哈希函数库

此文件提供了各种哈希算法的实现,包括FNV-1a、DJB2和MurmurHash等, 以及基本数据类型的哈希函数特化。支持编译时哈希计算和运行时高效哈希。

在文件 hash.hpp 中定义.