minecraftvulkan/engine/xe_utils.hpp
2022-09-18 21:20:51 -04:00

11 lines
No EOL
250 B
C++

#pragma once
namespace xe {
template <typename T, typename... Rest>
void hashCombine(std::size_t& seed, const T& v, const Rest&... rest) {
seed ^= std::hash<T>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
(hashCombine(seed, rest), ...);
};
}