Cogs.Core
HashSequence.h
1#pragma once
2
3#include "HashFunctions.h"
4
5namespace Cogs {
7 template<typename T, typename U>
8 constexpr size_t hashSequence(const T& t, const U& u) {
9 return hash(t, hash(u));
10 }
11
13 template<typename T, typename U, typename... Args>
14 constexpr size_t hashSequence(const T& t, const U& u, Args... args) {
15 return hash(t, hashSequence(u, args...));
16 }
17}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
constexpr size_t hash() noexcept
Simple getter function that returns the initial value for fnv1a hashing.
Definition: HashFunctions.h:62
constexpr size_t hashSequence(const T &t, const U &u)
Hash the last two items in a sequence of objects.
Definition: HashSequence.h:8