Nebula
|
#include <priorityarray.h>
A fixed size priority array.
Elements are associated with a priority. New Elements are added to the end of the array until the array is full. In a full array, new elements replace the current lowest priority element (if the priority of the new element is greater of course).
NOTE: The current implementation uses linear search and thus is slow for large arrays.