cdsa
Arena allocators and friends
|
Represents a binary heap (min-heap by default) More...
#include <heap.h>
Data Fields | |
Arena * | arena |
Pointer to an arena allocator. | |
struct { | |
long size | |
Size of the item data in bytes. | |
HeapDataCompare * compare | |
Pointer to a data comparison function. | |
HeapDataCopy * copy | |
Pointer to a data copy function. | |
} | data |
Data properties. | |
long | length |
Number of items in the heap. | |
HeapItem * | begin |
Pointer to the root item of the heap. | |
HeapItem * | end |
Pointer to the last item in the heap. | |
Represents a binary heap (min-heap by default)