From 5b22efa61446797039dd19fc1e9be83676463f99 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Feb 2009 17:14:49 +0000 Subject: [PATCH] Add operator->, patch by Ben Laurie! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64378 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ImmutableSet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 5d2969f45ae..2db659af7d5 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -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); }