add


Description:

public void add (owned T element)

Adds an element to the priority queue.

Example:

    var pq = new PriorityQueue<string> ((a, b) => {
return strcmp (a, b);
});
pq.add ("hello");
assert (pq.size () == 1);

Parameters:

element

the element to add.