HashTableIter.remove

Removes the key/value pair currently pointed to by the iterator from its associated glib.HashTable Can only be called after HashTable.iterNext returned TRUE, and cannot be called more than once for the same key/value pair.

If the glib.HashTable was created using HashTable.newFull, the key and value are freed using the supplied destroy functions, otherwise you have to make sure that any dynamically allocated values are freed yourself.

It is safe to continue iterating the glib.HashTable afterward:

while (g_hash_table_iter_next (&iter, &key, &value))
{
if (condition)
g_hash_table_iter_remove (&iter);
}
class HashTableIter
void
remove
()

Meta

Since

2.16