remove


Description:

[ Version ( since = "2.4" ) ]
public bool remove (G data)

Removes the first element in this that contains data.

Example: Remove:

public static int main () {
Queue<int> queue = new Queue<int> ();
queue.push_tail (1);
queue.push_tail (2);
queue.push_tail (3);
queue.push_tail (3);

queue.remove (3);

// Output: ``1 2 3 ``
int item = 0;
while ((item = queue.pop_head ()) != 0) {
print ("%d ", item);
}
print ("\n");

return 0;
}

valac --pkg glib-2.0 GLib.Queue.remove.vala

Parameters:

this

a Queue

data

the data to remove

Returns:

true if data was found and removed from this