steal_extended


Description:

[ Version ( since = "2.58" ) ]
public bool steal_extended (K lookup_key, out K stolen_key, out V stolen_value)

Looks up a key in the GenericSet, 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 steal.

You can pass null for lookup_key, provided the hash and equal functions of hash_table are null-safe.

Parameters:

lookup_key

the key to look up

stolen_key

return location for the original key

stolen_value

return location for the value associated with the key

hash_table

a GenericSet

Returns:

true if the key was found in the GenericSet




2022 vala-language.org