Creates an empty HashMap with the given hash and equality functions.
For string keys, pass GLib.str_hash and GLib.str_equal. For integer or pointer keys, pass GLib.direct_hash and GLib.direct_equal.
Example:
var map = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
assert (map.isEmpty ());
| hash_func |
the hash function for keys. |
| equal_func |
the equality function for keys. |