[llvm-commits] [llvm] r64378 - /llvm/trunk/include/llvm/ADT/ImmutableSet.h
Chris Lattner
sabre at nondot.org
Thu Feb 12 09:14:50 PST 2009
Author: lattner
Date: Thu Feb 12 11:14:49 2009
New Revision: 64378
URL: http://llvm.org/viewvc/llvm-project?rev=64378&view=rev
Log:
Add operator->, patch by Ben Laurie!
Modified:
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=64378&r1=64377&r2=64378&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Thu Feb 12 11:14:49 2009
@@ -1029,6 +1029,7 @@
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); }
More information about the llvm-commits
mailing list