Synchronize most shared template code with Godot 4.4

This commit is contained in:
David Snopek
2025-02-25 09:29:22 -06:00
parent 67ca2fbbad
commit 1edfca295b
16 changed files with 725 additions and 369 deletions

View File

@@ -68,6 +68,15 @@ struct PairSort {
}
};
template <typename F, typename S>
struct PairHash {
static uint32_t hash(const Pair<F, S> &P) {
uint64_t h1 = HashMapHasherDefault::hash(P.first);
uint64_t h2 = HashMapHasherDefault::hash(P.second);
return hash_one_uint64((h1 << 32) | h2);
}
};
template <typename K, typename V>
struct KeyValue {
const K key;