Skip to content

Instantly share code, notes, and snippets.

View SomethingWithComputers's full-sized avatar

Ron Talman SomethingWithComputers

View GitHub Profile
@SomethingWithComputers
SomethingWithComputers / PriorityQueue.cpp
Created January 12, 2021 00:36
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)