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

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
 

Detailed Description

Case insensitive ASCII hashing functor.

Definition at line 52 of file str_icase.hpp.

Member Typedef Documentation

◆ is_transparent

using utils::StrIcaseHash::is_transparent = void

Definition at line 54 of file str_icase.hpp.

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: