mirror of
https://github.com/PCSX2/pcsx2.git
synced 2024-11-30 04:50:32 +00:00
132431b7c8
also update to 2024 while i'm at it
15 lines
391 B
C++
15 lines
391 B
C++
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include <functional>
|
|
#include <utility>
|
|
|
|
template <typename T, typename... Rest>
|
|
static inline void HashCombine(std::size_t& seed, const T& v, Rest&&... rest)
|
|
{
|
|
seed ^= std::hash<T>{}(v) + 0x9e3779b9u + (seed << 6) + (seed >> 2);
|
|
(HashCombine(seed, std::forward<Rest>(rest)), ...);
|
|
}
|