#include <userver/utils/str_icase.hpp>
Case sensitive ASCII hashing functor.
Definition at line 22 of file str_icase.hpp.
|
| StrCaseHash () |
| Generates a new random hash seed for each hasher instance.
|
|
| StrCaseHash (HashSeed seed) noexcept |
|
std::size_t | operator() (std::string_view s) const &noexcept |
|
template<class StringStrongTypedef> |
auto | operator() (const StringStrongTypedef &s) const &noexcept -> decltype(operator()(std::string_view{s.GetUnderlying()})) |
|
HashSeed | GetSeed () const noexcept |
|
◆ StrCaseHash()
utils::StrCaseHash::StrCaseHash |
( |
HashSeed | seed | ) |
|
|
explicitnoexcept |
Uses the provided seed. Use with caution: a constant seed makes the hasher vulnerable to HashDOS attacks when arbitrary keys are allowed.
◆ GetSeed()
HashSeed utils::StrCaseHash::GetSeed |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator()()
template<class StringStrongTypedef>
auto utils::StrCaseHash::operator() |
( |
const StringStrongTypedef & | s | ) |
const & -> decltype(operator()(std::string_view{s.GetUnderlying()})) |
|
inlinenoexcept |
The documentation for this class was generated from the following file: