HashTable.foreach_

Calls the given function for each of the key/value pairs in the #GHashTable. The function is passed the key and value of each pair, and the given @user_data parameter. The hash table may not be modified while iterating over it (you can't add/remove items). To remove all items matching a predicate, use g_hash_table_foreach_remove().

See g_hash_table_find() for performance caveats for linear order searches in contrast to g_hash_table_lookup().

class HashTable
void
foreach_

Parameters

func GHFunc

the function to call for each key/value pair

userData void*

user data to pass to the function

Meta