HoverRace  2.0
Functions
HoverRace::Util::Hash Namespace Reference

Functions

template<class T >
void Combine (std::size_t &seed, const T &v)
 Mix in a value into a hash. More...
 

Function Documentation

template<class T >
void HoverRace::Util::Hash::Combine ( std::size_t &  seed,
const T &  v 
)
inline

Mix in a value into a hash.

This can be used to build a hash value from multiple values.

The algorithm is based on boost::hash_combine, but uses std::hash instead of boost::hash.

Parameters
[in,out]seedThe accumulating hash value.
vThe value to mix in.