multi.h 370 B

1234567891011121314
  1. #pragma once
  2. #include "numeric.h"
  3. #include <util/str_stl.h>
  4. template <typename TOne>
  5. constexpr size_t MultiHash(const TOne& one) noexcept {
  6. return THash<TOne>()(one);
  7. }
  8. template <typename THead, typename... TTail>
  9. constexpr size_t MultiHash(const THead& head, const TTail&... tail) noexcept {
  10. return CombineHashes(MultiHash(tail...), THash<THead>()(head));
  11. }