summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/iterator.h')
-rw-r--r--include/llvm/ADT/iterator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/ADT/iterator.h b/include/llvm/ADT/iterator.h
index 28728cac0f57..c30792892703 100644
--- a/include/llvm/ADT/iterator.h
+++ b/include/llvm/ADT/iterator.h
@@ -162,6 +162,8 @@ protected:
int>::type = 0)
: I(std::forward<U &&>(u)) {}
+ const WrappedIteratorT &wrapped() const { return I; }
+
public:
typedef DifferenceTypeT difference_type;
@@ -239,6 +241,6 @@ struct pointee_iterator
T &operator*() const { return **this->I; }
};
-} // namespace llvm
+}
#endif