}
/** Lookup the corresponding value for the given key. */
- _Val get(_Key key) {
+ _Val get(_Key key) const {
struct hashlistnode<_Key, _Val> *search;
unsigned int index = ((_KeyInt)key) >> _Shift;
}
/** Check whether the table contains a value for the given key. */
- bool contains(_Key key) {
+ bool contains(_Key key) const {
struct hashlistnode<_Key, _Val> *search;
unsigned int index = ((_KeyInt)key) >> _Shift;