diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-dictionary.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/core/slang-dictionary.h b/source/core/slang-dictionary.h index 69e8022dd..be7cc21f5 100644 --- a/source/core/slang-dictionary.h +++ b/source/core/slang-dictionary.h @@ -56,8 +56,14 @@ namespace Slang } int GetHashCode() { - return GetHashCode(Key); + return combineHash( + Slang::GetHashCode(Key), + Slang::GetHashCode(Value)); } + bool operator==(const KeyValuePair<TKey, TValue>& that) const + { + return (Key == that.Key) && (Value == that.Value); + } }; template<typename TKey, typename TValue> |
