diff options
| author | spholz <44805808+spholz@users.noreply.github.com> | 2021-08-12 22:27:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 22:27:17 +0200 |
| commit | 78a82495931e8c6b2161f79d2ac00ea88baea4f2 (patch) | |
| tree | 94480efdcd09a71e676782434a44d124002f835a /src/common/uuid.h | |
| parent | 21743daf38f19160baa2da0e939a4e945dd57228 (diff) | |
| parent | 0509fe33775bfc2b0221732dfdf08860d47283fc (diff) | |
Merge branch 'yuzu-emu:master' into fix-lan-play
Diffstat (limited to 'src/common/uuid.h')
| -rw-r--r-- | src/common/uuid.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h index aeb36939a..2353179d8 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h @@ -69,3 +69,14 @@ struct UUID { static_assert(sizeof(UUID) == 16, "UUID is an invalid size!"); } // namespace Common + +namespace std { + +template <> +struct hash<Common::UUID> { + size_t operator()(const Common::UUID& uuid) const noexcept { + return uuid.uuid[1] ^ uuid.uuid[0]; + } +}; + +} // namespace std |
