WIP just need to identify nodes on begin -> end path

This commit is contained in:
2024-02-09 12:45:34 -08:00
parent 8e918acc05
commit 403608c794
2 changed files with 76 additions and 35 deletions

View File

@@ -12,6 +12,7 @@
#include <set>
#include <span>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
@@ -183,6 +184,12 @@ template <class T> using Set = std::set<T, std::less<T>, ArenaAlloc<T>>;
template <class T> auto set(Arena &arena) {
return Set<T>(ArenaAlloc<T>(&arena));
}
template <class T>
using HashSet =
std::unordered_set<T, std::hash<T>, std::equal_to<T>, ArenaAlloc<T>>;
template <class T> auto hashSet(Arena &arena) {
return HashSet<T>(ArenaAlloc<T>(&arena));
}
template <class T, class U>
bool operator==(const ArenaAlloc<T> &lhs, const ArenaAlloc<U> &rhs) {