Template
1
0

Reorganising further

This commit is contained in:
2025-06-26 01:59:18 +03:00
parent 095dd8ddf9
commit ea8b8c884e
8 changed files with 31 additions and 15 deletions

View File

@@ -2,10 +2,16 @@
// https://medium.com/@ryan_forrester_/using-switch-statements-with-strings-in-c-a-complete-guide-efa12f64a59d
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
// This is called a polynomial rolling hash, prob going to collide
namespace Helpers {
std::string ReadFile(std::string Path);
// ===========
// Hashing
// ===========
// This is called a polynomial rolling hash, prob going to collide
constexpr uint64_t Pathhash(std::string_view s) {
uint64_t res = 0;
for (uint8_t c : s) {