Implemented operator!= for the ImmutableList iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-07-02 00:06:55 +00:00
parent 72e61b8501
commit 445723bfb0

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; }
};