From a7f4afab8029f52dff43840062c8b6cb2008bd67 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 5 Dec 2024 13:39:17 +0800 Subject: [PATCH] use newly Comparator<> --- inc/hgl/util/hash/Hash.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/inc/hgl/util/hash/Hash.h b/inc/hgl/util/hash/Hash.h index 5cec224..e2fd1ca 100644 --- a/inc/hgl/util/hash/Hash.h +++ b/inc/hgl/util/hash/Hash.h @@ -38,7 +38,7 @@ namespace hgl /** * Hash编码结构模板 */ - template struct HashCode + template struct HashCode:public ComparatorData> { uint8 code[SIZE]{}; @@ -58,25 +58,6 @@ namespace hgl template void ToUpperString(T *str,const T gap_char=0) const {ToUpperHexStr(str,code,SIZE,gap_char);} template void ToLowerString(T *str,const T gap_char=0) const {ToLowerHexStr(str,code,SIZE,gap_char);} - - const int CompFunc(const HashCode &hash)const - { - const unsigned char *s=code; - const unsigned char *t=hash.code; - - for(int i=0;i &,CompFunc) };//template struct HashCode /**