add


Description:

public void add (owned T value)

This is a convenience function for using a GenericSet as a set.

It is equivalent to calling replace with key as both the key and the value.

When a hash table only ever contains keys that have themselves as the corresponding value it is able to be stored more efficiently. See the discussion in the section description.

Parameters:

hash_table

a GenericSet

key

a key to insert

Returns:

true if the key did not exist yet