From 94764d2df06d42b3b9d07f2751d14291df90b1af Mon Sep 17 00:00:00 2001 From: morzhovets Date: Mon, 30 Dec 2024 20:59:05 +0400 Subject: [PATCH] KeyArgBase -> BaseKeyArg --- include/momo/HashTraits.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/momo/HashTraits.h b/include/momo/HashTraits.h index 508dca2b..fa51d66d 100644 --- a/include/momo/HashTraits.h +++ b/include/momo/HashTraits.h @@ -121,22 +121,22 @@ typedef MOMO_DEFAULT_HASH_BUCKET_OPEN HashBucketOpenDefault; template + typename TBaseKeyArg = TKey> class HashTraits { public: typedef TKey Key; typedef THashBucket HashBucket; - typedef TKeyArgBase KeyArgBase; + typedef TBaseKeyArg BaseKeyArg; - static const bool isFastNothrowHashable = IsFastNothrowHashable::value; + static const bool isFastNothrowHashable = IsFastNothrowHashable::value; template using Bucket = typename HashBucket::template Bucket; template - using IsValidKeyArg = typename std::conditional::value, - std::false_type, std::is_convertible>::type; //? + using IsValidKeyArg = typename std::conditional::value, + std::false_type, std::is_convertible>::type; //? public: explicit HashTraits() noexcept @@ -161,13 +161,13 @@ class HashTraits template size_t GetHashCode(const KeyArg& key) const { - return HashCoder()(static_cast(key)); + return HashCoder()(static_cast(key)); } template bool IsEqual(const KeyArg1& key1, const KeyArg2& key2) const { - return static_cast(key1) == static_cast(key2); + return static_cast(key1) == static_cast(key2); } };