delete_link


Description:

[ Version ( since = "2.4" ) ]
public void delete_link (List<G> link)

Removes link_ from this and frees it.

link_ must be part of this.

Example: Delete a link:

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

unowned List<int> found = queue.find (900);
print ("Found: %d\n", found.data);
queue.delete_link (found);

// 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.delete_link.vala

Parameters:

this

a Queue

link_

a List link that must be part of this