diff --git a/Include/auROXTL/auHashUtils.hpp b/Include/auROXTL/auHashUtils.hpp index 18497f9..af5cbb7 100644 --- a/Include/auROXTL/auHashUtils.hpp +++ b/Include/auROXTL/auHashUtils.hpp @@ -217,6 +217,21 @@ inline AuUInt AuHashCode(const T &ref) return AuHash::hash()(ref); } +#include + +namespace AuHash +{ + template + struct hash> + { + constexpr AuUInt operator ()(const AuPair &pair) const + { + return AuHashCode(AuGet<0>(pair)) ^ + AuHashCode(AuGet<1>(pair)); + } + }; +} + template struct AuEnableHashCodeOnData { @@ -228,4 +243,4 @@ struct AuEnableHashCodeOnData return AuFnv1a64Runtime(AuStaticCast>(this), sizeof(T)); #endif } -}; \ No newline at end of file +};