--- parser3/src/include/pa_hash.h 2001/10/29 08:23:49 1.46 +++ parser3/src/include/pa_hash.h 2001/11/01 10:59:26 1.48 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_hash.h,v 1.46 2001/10/29 08:23:49 paf Exp $ + $Id: pa_hash.h,v 1.48 2001/11/01 10:59:26 paf Exp $ */ #ifndef PA_HASH_H @@ -52,6 +52,9 @@ public: /// put a [value] under the [key], return existed or not bool put(const Key& key, Val *value); + + /// remove the [key] + void remove(const Key& key); /* /// dirty hack to allow constant items storage. I long for Hash bool put(const Key& key, const Val *value) { @@ -132,7 +135,7 @@ private: friend class Hash; uint code; - const Key key; + const Key& key; Val *value; Pair *link;