Implemented operator!= for the ImmutableList iterator.

llvm-svn: 52998
This commit is contained in:
Ted Kremenek 2008-07-02 00:06:55 +00:00
parent e6cc6bb5b3
commit 19941499b8
1 changed files with 2 additions and 1 deletions

View File

@ -85,8 +85,9 @@ public:
iterator() : L(0) {}
iterator(ImmutableList l) : L(l.getInternalPointer()) {}
iterator& operator++() { L = L->Tail; return *this; }
iterator& operator++() { L = L->getTail(); return *this; }
bool operator==(const iterator& I) const { return L == I.L; }
bool operator!=(const iterator& I) const { return L != I.L; }
ImmutableList operator*() const { return L; }
};