mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
12 lines
No EOL
227 B
C++
12 lines
No EOL
227 B
C++
#pragma once
|
|
#include <type_traits>
|
|
#include <string>
|
|
#include <xxhash.h>
|
|
|
|
struct xxHashStringGen
|
|
{
|
|
inline uint64_t operator()(const std::string &str) const
|
|
{
|
|
return XXH3_64bits(str.data(), str.size());
|
|
}
|
|
}; |