diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-12-17 16:45:06 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:52 +0200 |
commit | e462191482c6507daed67802c6c1d2c50f10c96e (patch) | |
tree | a6b4d851075d93b3052637d1382691e71b9b8c0e /src/common | |
parent | bb74973bba6005cee5f1409b3b5a6c572da3cf66 (diff) |
Refactor VideoCore to use AS sepparate from Channel.
Diffstat (limited to 'src/common')
-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 { } }; +template <typename T> +struct IdentityHash { + [[nodiscard]] size_t operator()(T value) const noexcept { + return static_cast<size_t>(value); + } +}; + } // namespace Common |