35[[nodiscard]]
constexpr auto hash_string(std::string_view str)
noexcept
37 constexpr std::uint32_t init_num = 0x5928ACD1U;
38 std::uint32_t num = init_num;
41 static_cast<std::uint32_t
>(
static_cast<unsigned char>(c));
42 constexpr std::uint32_t shift = 5U;
43 num += (num << shift) + added;