Add operator->, patch by Ben Laurie!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-02-12 17:14:49 +00:00
parent 327e98fae1
commit 5b22efa614

View File

@ -1029,6 +1029,7 @@ public:
inline iterator operator--(int) { iterator tmp(*this); --itr; return tmp; } inline iterator operator--(int) { iterator tmp(*this); --itr; return tmp; }
inline bool operator==(const iterator& RHS) const { return RHS.itr == itr; } inline bool operator==(const iterator& RHS) const { return RHS.itr == itr; }
inline bool operator!=(const iterator& RHS) const { return RHS.itr != itr; } inline bool operator!=(const iterator& RHS) const { return RHS.itr != itr; }
inline value_type *operator->() const { return &(operator*()); }
}; };
iterator begin() const { return iterator(Root); } iterator begin() const { return iterator(Root); }