Function

GLib-2.0GLibhash_table_foreach_remove

  • Calls the given function for each key/value pair in the GLib.HashTable. If the function returns true, then the key/value pair is removed from the GLib.HashTable. If you supplied key or value destroy functions when creating the GLib.HashTable, they are used to free the memory allocated for the removed keys and values.

    See GLib.HashTableIter for an alternative way to loop over the key/value pairs in the hash table.

    Parameters

    Returns number

    the number of key/value pairs removed