From dd39be6c96ec6d139b94a2d08108384a09954865 Mon Sep 17 00:00:00 2001
From: Chris Lattner <sabre@nondot.org>
Date: Wed, 24 Jul 2002 22:07:13 +0000
Subject: [PATCH] Add forward_iterator wrapper

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3061 91177308-0d34-0410-b5e6-96231b3b80d8
---
 include/Support/iterator | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/Support/iterator b/include/Support/iterator
index 095d6047aec..46cf9679369 100644
--- a/include/Support/iterator
+++ b/include/Support/iterator
@@ -12,6 +12,7 @@
 // following classes in the global namespace:
 //
 //   1. bidirectional_iterator
+//   2. forward_iterator
 //
 //===----------------------------------------------------------------------===//
 
@@ -28,9 +29,15 @@ struct bidirectional_iterator
   : public std::iterator<std::bidirectional_iterator_tag, Ty, PtrDiffTy> {
 };
 
+template<class Ty, class PtrDiffTy>
+struct forward_iterator
+  : public std::iterator<std::forward_iterator_tag, Ty, PtrDiffTy> {
+};
+
 #else
 // Just use bidirectional_iterator directly.
 using std::bidirectional_iterator;
+using std::forward_iterator;
 #endif
 
 #endif