Add forward_iterator wrapper
authorChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 22:07:13 +0000 (22:07 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 22:07:13 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3061 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/iterator

index 095d6047aec978e2b0cac42c87bedf985ee90173..46cf9679369917b1d269cdd4a879efd65378bfa6 100644 (file)
@@ -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