userver: utils::StrIcaseHash Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::StrIcaseHash Class Reference

#include <userver/utils/str_icase.hpp>

Detailed Description

Case insensitive ASCII hashing functor.

Definition at line 52 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: