Case insensitive ASCII hashing functor. More...
#include <userver/utils/str_icase.hpp>
Public Types | |
| using | is_transparent = void |
Public Member Functions | |
| StrIcaseHash () | |
| Generates a new random hash seed for each hasher instance. | |
| StrIcaseHash (HashSeed seed) noexcept | |
| std::size_t | operator() (std::string_view s) const &noexcept |
Case insensitive ASCII hashing functor.
Definition at line 52 of file str_icase.hpp.
Definition at line 54 of file str_icase.hpp.
|
explicitnoexcept |
Uses the provided seed. Use with caution: a constant seed makes the hasher vulnerable to HashDOS attacks when arbitrary keys are allowed.