userver: utils::StrIcaseHash Class Reference
Loading...
Searching...
No Matches
utils::StrIcaseHash Class Reference

#include <userver/utils/str_icase.hpp>

Detailed Description

Case insensitive ASCII hashing functor.

Definition at line 54 of file str_icase.hpp.

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
 

Constructor & Destructor Documentation

◆ StrIcaseHash()

utils::StrIcaseHash::StrIcaseHash ( 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.


The documentation for this class was generated from the following file: