Looks up a key in the GLib.HashTable, stealing the original key and the
associated value and returning true if the key was found. If the key was
not found, false is returned.
If found, the stolen key and value are removed from the hash table without
calling the key and value destroy functions, and ownership is transferred to
the caller of this method, as with g_hash_table_steal(). That is the case
regardless whether stolen_key or stolen_value output parameters are
requested.
You can pass null for lookup_key, provided the hash and equal functions
of hash_table are null-safe.
The dictionary implementation optimizes for having all values identical to
their keys, for example by using g_hash_table_add(). Before 2.82, when
stealing both the key and the value from such a dictionary, the value was
null. Since 2.82, the returned value and key will be the same.
Looks up a key in the GLib.HashTable, stealing the original key and the associated value and returning
trueif the key was found. If the key was not found,falseis returned.If found, the stolen key and value are removed from the hash table without calling the key and value destroy functions, and ownership is transferred to the caller of this method, as with
g_hash_table_steal(). That is the case regardless whetherstolen_keyorstolen_valueoutput parameters are requested.You can pass
nullforlookup_key, provided the hash and equal functions ofhash_tablearenull-safe.The dictionary implementation optimizes for having all values identical to their keys, for example by using
g_hash_table_add(). Before 2.82, when stealing both the key and the value from such a dictionary, the value wasnull. Since 2.82, the returned value and key will be the same.