feat(policy): updateed policy system and added new reaction chains
Reacions chains now contain more information and are broken out in a more detailed fashion.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
|
||||
#include "gridfire/exceptions/exceptions.h"
|
||||
#include "gridfire/reaction/reaction.h"
|
||||
@@ -62,4 +63,10 @@ namespace gridfire::utils {
|
||||
return splitmix64(h);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::size_t hash_combine(std::size_t seed, const T& v) {
|
||||
std::hash<T> hasher;
|
||||
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user