7#include "../macros.hpp"
15hi_export_module(hikogui.utility.hash);
17hi_export
namespace hi::inline
v1 {
22 return hash1 + 0x9e3779b97f681800 + (hash2 << 6) + (hash2 >> 2);
24 return hash1 + 0x9e3779b9 + (hash2 << 6) + (hash2 >> 2);
30template<
typename First,
typename Second,
typename... Args>
31[[nodiscard]]
constexpr std::size_t hash_mix(First &&first, Second &&second, Args &&...args)
noexcept
33 if constexpr (
sizeof...(args) == 0) {
35 std::hash<std::remove_cvref_t<First>>{}(std::forward<First>(first)),
36 std::hash<std::remove_cvref_t<Second>>{}(std::forward<Second>(second)));
39 std::hash<std::remove_cvref_t<First>>{}(std::forward<First>(first)),
40 hash_mix(std::forward<Second>(second), std::forward<Args>(args)...));
Utilities to assert and bound check.
Utilities for throwing exceptions and terminating the application.
DOXYGEN BUG.
Definition algorithm_misc.hpp:20