Mission Base

Program Base Library Functions

void* pblHeapRemoveLast

( PblHeap* heap )

Removes the last element from the heap, maintaining the heap condition of the heap.

Documentation

Removes the last element from the heap, maintaining the heap condition of the heap.

Note: The last element is not guaranteed to be the smallest element!

This function has a time complexity of O(1).

Parameters:
heap - The heap to use
Returns:
void* retptr != (void*)-1: The element removed.
void* retptr == (void*)-1: An error see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - The heap is empty.

Alphabetic index



This page was generated with the help of DOC++.