GHashTable: Explicitly document that _iter_remove() is safe while iterating

https://bugzilla.gnome.org/show_bug.cgi?id=723316
This commit is contained in:
Xavier Claessens 2014-02-21 15:35:36 -05:00
parent 59a8ae34c0
commit 6fcaa7aa96

View File

@ -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