aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/multi.h
blob: 9b2d5f2f88e160e4b0942660c8177dac175eec5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once 
 
#include <util/str_stl.h> 
 
#include "numeric.h" 
 
template <typename TOne>
constexpr size_t MultiHash(const TOne& one) noexcept {
    return THash<TOne>()(one); 
} 
template <typename THead, typename... TTail>
constexpr size_t MultiHash(const THead& head, const TTail&... tail) noexcept {
    return CombineHashes(MultiHash(tail...), THash<THead>()(head));
}