Introduce a base class for hashes

This commit is contained in:
hashlag
2025-08-09 17:28:53 +03:00
parent f19ea0bc1c
commit 3841242bdb
5 changed files with 37 additions and 12 deletions

21
Chaos/Hashing/Hash.hpp Normal file
View File

@@ -0,0 +1,21 @@
#ifndef CHAOS_HASHING_HASH_HPP
#define CHAOS_HASHING_HASH_HPP
#include <string>
namespace Chaos::Hashing
{
template<typename T>
class Hash
{
public:
std::string ToHexString() const
{
return static_cast<const T &>(*this).ToHexString();
}
};
} // namespace Chaos::Hashing
#endif