isEmpty


Description:

public bool isEmpty ()

Returns whether the set is empty.

Example:

    var set = new HashSet<string> (GLib.str_hash, GLib.str_equal);
assert (set.isEmpty ());
set.add ("a");
assert (!set.isEmpty ());

Returns:

true if the set has no elements.