mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 08:16:24 +01:00
GHashTable: Explicitly document that _iter_remove() is safe while iterating
https://bugzilla.gnome.org/show_bug.cgi?id=723316
This commit is contained in:
parent
59a8ae34c0
commit
6fcaa7aa96
@ -809,6 +809,15 @@ iter_remove_or_steal (RealIter *ri, gboolean notify)
|
||||
* otherwise you have to make sure that any dynamically allocated
|
||||
* values are freed yourself.
|
||||
*
|
||||
* It is safe to continue iterating the #GHashTable afterward:
|
||||
* |[
|
||||
* while (g_hash_table_iter_next (&iter, &key, &value))
|
||||
* {
|
||||
* if (condition)
|
||||
* g_hash_table_iter_remove (&iter);
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* Since: 2.16
|
||||
*/
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user