Euphoria
Public Member Functions | Public Attributes | List of all members
eu::Hsh Struct Reference

Hash of a non-owning string. More...

Public Member Functions

constexpr Hsh (const std::string_view s)
 Creates a new hash object and computes the hash at compile time if possible.
 

Public Attributes

u64 hash
 The actual hash.
 
std::string_view text
 Non-owning storage of the printable string, if enabled.
 

Detailed Description

Hash of a non-owning string.

It will be (pretty) printed as the original string if that is enabled. Treat it as a regular std::string_view but without the string functionality.

See also
hash64
HshO

Definition at line 26 of file hash.string.h.

Constructor & Destructor Documentation

◆ Hsh()

constexpr eu::Hsh::Hsh ( const std::string_view  s)
inlineconstexpr

Creates a new hash object and computes the hash at compile time if possible.

Definition at line 39 of file hash.string.h.

Member Data Documentation

◆ hash

u64 eu::Hsh::hash

The actual hash.

Prefer to use operators on Hsh instead of accessing this directly.

Definition at line 30 of file hash.string.h.

◆ text

std::string_view eu::Hsh::text

Non-owning storage of the printable string, if enabled.

Please ignore if possible and just print as normal.

Definition at line 35 of file hash.string.h.


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