Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
util::transparent_string_hash Struct Reference

Hash strings, string views, and C strings without temporary allocations. More...

#include <src/string_hash.h>

Public Types

using is_transparent = void
 Enable heterogeneous unordered-container lookup.

Public Member Functions

std::size_t operator() (std::string_view value) const noexcept
 Hash all characters in a string-like key, including embedded nulls in views.

Detailed Description

Hash strings, string views, and C strings without temporary allocations.

Member Function Documentation

◆ operator()()

std::size_t util::transparent_string_hash::operator() ( std::string_view value) const
inlinenoexcept

Hash all characters in a string-like key, including embedded nulls in views.

Parameters
valueText to hash.
Returns
Hash shared by equivalent owning and non-owning string keys.

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