Skip to content

Instantly share code, notes, and snippets.

@hyaniner
hyaniner / PriorityQueue.cpp
Created May 15, 2021 12:38 — forked from SomethingWithComputers/PriorityQueue.cpp
A simple Priority Queue (Binary Heap) wrapper for UE4's TArray (for example for A*/A star and Greedy graph traversal)
template <typename InElementType>
struct TPriorityQueueNode {
InElementType Element;
float Priority;
TPriorityQueueNode()
{
}
TPriorityQueueNode(InElementType InElement, float InPriority)