clear


Description:

public void clear ()

Removes all elements from the list.

Example:

    var list = new LinkedList<string> (GLib.str_equal);
list.addLast ("a");
list.addLast ("b");
list.clear ();
assert (list.isEmpty ());