containsValue


Description:

public bool containsValue (V value, EqualFunc<V> value_equal)

Returns whether the map contains the specified value. This requires a linear scan of all values.

Example:

    var map = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
map.put ("key", "value");
assert (map.containsValue ("value"));

Parameters:

value

the value to check.

value_equal

the equality function for values.

Returns:

true if the value exists.