Luna::strhash

template <typename _HashTy>
constexpr _HashTy strhash(const c8 *s, _HashTy h=0)

Computes a hash code for the specified string.

Parameters

  • in s

    A pointer to one null-terminated string to compute.

  • in h

    A initial hash value. See memhash for details.

Return value

Returns the hash code of the string.