Mission Base

Program Base Library Functions

void* pblPriorityQueueRemoveAt

( PblPriorityQueue* queue,
  int index, int* priority )

Removes the element at the specified position from the priority queue, maintaining the heap condition of the queue.

Documentation

Removes the element at the specified position from the priority queue, maintaining the heap condition of the queue.

This function has a time complexity of O(Log N), with N being the number of elements in the queue.

Parameters:
queue - The queue to use
index - The index at which the element is to be removed
priority - On return contains the priority of the element removed
Returns:
void* retptr != (void*)-1: The element removed.
void* retptr == (void*)-1: An error see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - Index is out of range (index < 0 || index >= size()).

Alphabetic index



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