YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
散列扩展接口。 更多...
命名空间 | |
ystdex::details | |
类 | |
struct | ystdex::combined_hash<> |
使用 std::hash 和 ystdex::hash_combine_seq 实现的对特定类型的散列。 更多... | |
struct | ystdex::combined_hash< _type > |
struct | ystdex::combined_hash< std::tuple< _types...> > |
struct | ystdex::combined_hash< std::pair< _type1, _type2 > > |
函数 | |
template<typename _type > | |
void | ystdex::hash_combine (size_t &seed, const _type &val) |
重复计算散列。 更多... | |
template<typename _type , typename... _tParams> | |
size_t | ystdex::hash_combine_seq (size_t seed, const _type &x, const _tParams &...args) |
template<typename _tIn > | |
size_t | ystdex::hash_range (_tIn first, _tIn last) |
重复对范围计算散列。 更多... | |
template<typename _tIn > | |
size_t | ystdex::hash_range (size_t &seed, _tIn first, _tIn last) |
散列扩展接口。
|
inline |
重复计算散列。
(1UL << 31) / ((1 + std::sqrt(5)) / 4) == 0x9E3779B9
。 在文件 functional.hpp 第 474 行定义.
参考自 ystdex::hash_combine_seq() , 以及 ystdex::hash_range().
|
inline |
|
inline |
重复对范围计算散列。
在文件 functional.hpp 第 506 行定义.
参考 ystdex::iterator_transformation::first() , 以及 ystdex::hash_combine().
|
inline |
在文件 functional.hpp 第 516 行定义.
参考 ystdex::iterator_transformation::first() , 以及 ystdex::hash_combine().