operator==

This commit is contained in:
mattijs
2008-08-06 10:24:35 +01:00
parent 7d9b0b103d
commit 1b3cf9133a
2 changed files with 46 additions and 0 deletions

View File

@ -223,6 +223,15 @@ public:
//- Assignment
void operator=(const HashTable<T, Key, Hash>&);
//- Equality. Two hashtables are equal if all contents of first are
// also in second and vice versa. So does not depend on table size or
// order!
bool operator==(const HashTable<T, Key, Hash>&) const;
//- The opposite of the equality operation. Takes linear time.
bool operator!=(const HashTable<T, Key, Hash>&) const;
// STL type definitions