Skip to content

title: "LiteFX::operator""_hash"

LiteFX::operator""_hash

Computes the FNVa hash for string.

Synopsis

Declared in <litefx/string.hpp>

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

Return Value

The FNVa hash for string.

Parameters

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