diff options
Diffstat (limited to 'src/common/hash.h')
-rw-r--r-- | src/common/hash.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/common/hash.h b/src/common/hash.h index 298930702..e8fe78b07 100644 --- a/src/common/hash.h +++ b/src/common/hash.h @@ -1,6 +1,5 @@ -// Copyright 2015 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. +// SPDX-FileCopyrightText: 2015 Citra Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later #pragma once @@ -19,4 +18,11 @@ struct PairHash { } }; +template <typename T> +struct IdentityHash { + [[nodiscard]] size_t operator()(T value) const noexcept { + return static_cast<size_t>(value); + } +}; + } // namespace Common |