MCPcopy Create free account
hub / github.com/comaps/comaps / Hash

Function Hash

libs/base/math.hpp:173–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171// Calculate hash for the pair of values.
172template <typename T1, typename T2>
173size_t Hash(T1 const & t1, T2 const & t2)
174{
175 /// @todo Probably, we need better hash for 2 integral types.
176 return (std::hash<T1>()(t1) ^ (std::hash<T2>()(t2) << 1));
177}
178} // namespace math

Callers 6

IndexMethod · 0.70
HashMethod · 0.70
HashMethod · 0.50
UNIT_CLASS_TESTFunction · 0.50
unordered_dense.hFile · 0.50
tableFunction · 0.50

Calls

no outgoing calls

Tested by 1

UNIT_CLASS_TESTFunction · 0.40