isEmpty


Description:

public bool isEmpty ()

Returns whether the list is empty.

Example:

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

Returns:

true if the list has no elements.