version 1.3, 2001/04/27 18:46:20
|
version 1.4, 2001/04/29 06:26:23
|
|
|
H::hash(key), new _Bucket<K, V, E>(key, value), &key); | H::hash(key), new _Bucket<K, V, E>(key, value), &key); |
} | } |
| |
|
/** Checks to see if hash table contains an entry with the given key. |
|
@param key key to be searched for |
|
@return true if hash table contains an entry with the given key. |
|
*/ |
|
Boolean contains(const K& key) |
|
{ |
|
V value; |
|
return lookup(key, value); |
|
} |
|
|
/** Looks up the entry with the given key. | /** Looks up the entry with the given key. |
@param key key of entry to be located. | @param key key of entry to be located. |
@param value output value. | @param value output value. |