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 /**