Skip to content

title: "LiteFX::operator""_hash"

LiteFX::operator""_hash

Computes the FNVa hash for string.

Synopses

Declared in <litefx/string.hpp>

Computes the FNVa hash for string.

consteval uint64_t operator""_hash(
    char const* string,
    size_t chars) noexcept;

» more...

Computes the FNVa hash for string.

consteval uint64_t operator""_hash(
    wchar_t const* string,
    size_t chars) noexcept;

» more...

Return Value

The FNVa hash for string.

Parameters

NameDescription
stringThe string to hash.
charsThe number of characters in the string.