aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 22:07:13 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 22:07:13 +0000
commitdd39be6c96ec6d139b94a2d08108384a09954865 (patch)
tree29fbfe29986e4f45c5feef9dc7c503737b07460c /include
parent98f1bfb4a034b52e5aba748915f4527ae58ca244 (diff)
downloadexternal_llvm-dd39be6c96ec6d139b94a2d08108384a09954865.zip
external_llvm-dd39be6c96ec6d139b94a2d08108384a09954865.tar.gz
external_llvm-dd39be6c96ec6d139b94a2d08108384a09954865.tar.bz2
Add forward_iterator wrapper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/Support/iterator7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Support/iterator b/include/Support/iterator
index 095d604..46cf967 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