sandbox
|
Functor that implements the fnv1a hash algorithm. More...
#include <hash.hpp>
Public Types | |
using | char_type = Char |
using | size_type = std::size_t |
using | hash_type = Hash |
using | hash_traits = HashTraits |
Public Member Functions | |
constexpr auto | operator() (std::basic_string_view< Char > string) const noexcept -> hash_type |
Hashes the given string. More... | |
Functor that implements the fnv1a hash algorithm.
Char | The character type of the string to hash. |
Hash | The type of the hash. Defaults to std::uint64_t. |
HashTraits | The traits of the hash. Defaults to fnv1a_traits<Hash>. |
|
inlineconstexprnoexcept |
Hashes the given string.
string | The string to hash. |
size | The size of the string. |