lookup_extended


Description:

public bool lookup_extended (K lookup_key, out unowned K orig_key, out unowned V value)

Looks up a key in the GenericSet, returning the original key and the associated value and a bool which is true if the key was found.

This is useful if you need to free the memory allocated for the original key, for example before calling remove.

You can actually pass null for lookup_key to test whether the null key exists, provided the hash and equal functions of hash_table are null-safe.

Parameters:

lookup_key

the key to look up

orig_key

return location for the original key

value

return location for the value associated with the key

hash_table

a GenericSet

Returns:

true if the key was found in the GenericSet