[ CCode ( has_construct_function = false ) ]
public Heap (uint element_size, CompareFunc compare_func)
Creates a new Heap.
A heap is a tree-like structure stored in an array that is not fully sorted, but head is guaranteed to be either the max, or min value
based on compare_func
. This is also known as a priority queue.
element_size |
the size of each element in the heap |
compare_func |
a function to compare to elements |
A newly allocated Heap |