Lines Matching full:elements
50 int nr; /* Number of elements in the heap */
51 int size; /* Maximum number of elements that can be held */
58 A typical heap structure will include a counter for the number of elements
60 elements (`data`). Optionally, you can specify a static array for preallocated
67 elements in the heap and swapping them. It contains two function pointers:
76 - **less** is the comparison function used to establish the order of elements.
77 - **swp** is a function for swapping elements in the heap. If swp is set to
78 NULL, the default swap function will be used, which swaps the elements based on their size
97 - **data**: A pointer to the buffer where the heap elements will be stored. If
99 - **size**: The maximum number of elements the heap can hold.
209 Removing Specific Elements
260 initializing it, and inserting and removing elements as needed.
276 /* Pre-populate the buffer with elements */
285 my_heap.nr = 5; /* Set the number of elements in the heap */