Program Base Library Functions
Removes the last element from the priority queue, maintaining the heap condition of the queue.
Removes the last element from the priority queue,
maintaining the heap condition of the queue.
Note: The last element is not guaranteed to be
the element with the lowest priority!
This function has a time complexity of O(1).
- queue - The queue to use
priority - On return contains the priority of the element removed
- void* retptr != (void*)-1: The element removed.
void* retptr == (void*)-1: An error see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - The queue is empty.
This page was generated with the help of DOC++.