![]() |
mutable
A Database System for Research and Fast Prototyping
|
Computes the FNV-1a 64-bit hash of a cstring. More...
#include <fn.hpp>
Public Types | |
using | is_transparent = void |
| |
Public Member Functions | |
uint64_t | operator() (const char *c_str) const |
uint64_t | operator() (const char *c_str, std::size_t len) const |
uint64_t | operator() (const std::string &s) const |
uint64_t | operator() (const std::string_view &sv) const |
template<typename T > requires requires (T &&t) { std::string_view(std::forward<T>(t)); } | |
uint64_t | operator() (T &&t) |
using m::StrHash::is_transparent = void |
Mark this callable as transparent, allowing for computing the hash of various types that are interoperable.
See https://en.cppreference.com/w/cpp/container/unordered_map/find.
|
inline |
Definition at line 76 of file fn.hpp.
References m::FNV1a().
|
inline |
Definition at line 77 of file fn.hpp.
References m::FNV1a().
|
inline |
|
inline |
Definition at line 79 of file fn.hpp.
References m::FNV1a().
|
inline |
Definition at line 83 of file fn.hpp.
References m::FNV1a().