HashTable.insert

Inserts a new key and value into a GHashTable. If the key already exists in the GHashTable its current value is replaced with the new value. If you supplied a value_destroy_func when creating the GHashTable, the old value is freed using that function. If you supplied a key_destroy_func when creating the GHashTable, the passed key is freed using that function.

class HashTable
void
insert
(
void* key
,
void* value
)

Parameters

key void*

a key to insert

value void*

the value to associate with the key

Meta