Update concept Hasher: require T::HashType inner type.

This commit is contained in:
hashlag committed 2026-09-12 02:39:44 +03:00
1 parent 0f41687ea6
commit cb8b6ceeb8
1 file changed
+1
+1
View File
@@ -11,6 +11,7 @@ namespace Chaos::Hash
template<typename T> template<typename T>
concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end) concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end)
{ {
typename T::HashType;
hasher.Reset(); hasher.Reset();
hasher.Update(begin, end); hasher.Update(begin, end);
{ hasher.Finish() } -> Hash; { hasher.Finish() } -> Hash;