remove


Description:

public bool remove (K key)

Removes a key/value pair from a Tree.

If the Tree was created using Tree.full, the key and value are freed using the supplied destroy functions, otherwise you have to make sure that any dynamically allocated values are freed yourself. If the key does not exist in the Tree, the function does nothing.

Parameters:

this

a Tree

key

the key to remove

Returns:

true if the key was found (prior to 2.8, this function returned nothing)