HashMap::size does not modify the state of the hashmap, so it can be declared const (allowing it to be used on const hashmaps, too)

svn-id: r22156
This commit is contained in:
Max Horn 2006-04-25 19:20:57 +00:00
parent d5c8a791a6
commit 62dce81acc

View File

@ -172,7 +172,7 @@ public:
size_t erase(const Key &key);
uint size() { return _nele; }
uint size() const { return _nele; }
const_iterator begin() const {
// Find and return the first non-empty entry