Add operator->, patch by Ben Laurie!

llvm-svn: 64378
This commit is contained in:
Chris Lattner 2009-02-12 17:14:49 +00:00
parent 2a13562296
commit c21f591628

View File

@ -1029,6 +1029,7 @@ public:
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 value_type *operator->() const { return &(operator*()); }
};
iterator begin() const { return iterator(Root); }