diff options
| author | 2021-12-17 16:45:06 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:52 +0200 | |
| commit | e462191482c6507daed67802c6c1d2c50f10c96e (patch) | |
| tree | a6b4d851075d93b3052637d1382691e71b9b8c0e /src/common/hash.h | |
| parent | General: Rebase fixes. (diff) | |
| download | yuzu-e462191482c6507daed67802c6c1d2c50f10c96e.tar.gz yuzu-e462191482c6507daed67802c6c1d2c50f10c96e.tar.xz yuzu-e462191482c6507daed67802c6c1d2c50f10c96e.zip | |
Refactor VideoCore to use AS sepparate from Channel.
Diffstat (limited to '')
| -rw-r--r-- | src/common/hash.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/hash.h b/src/common/hash.h index b6f3e6d6f..e8fe78b07 100644 --- a/src/common/hash.h +++ b/src/common/hash.h | |||
| @@ -18,4 +18,11 @@ struct PairHash { | |||
| 18 | } | 18 | } |
| 19 | }; | 19 | }; |
| 20 | 20 | ||
| 21 | template <typename T> | ||
| 22 | struct IdentityHash { | ||
| 23 | [[nodiscard]] size_t operator()(T value) const noexcept { | ||
| 24 | return static_cast<size_t>(value); | ||
| 25 | } | ||
| 26 | }; | ||
| 27 | |||
| 21 | } // namespace Common | 28 | } // namespace Common |