diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:07:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:07:13 +0000 |
commit | bad64ee7e3bbadb95beb57dba53e43e96f3e5d02 (patch) | |
tree | 623c60f6b19ddf1a8f4cd541ff012334a3bf06db | |
parent | 80b3dfd7d6c09f4b570ab4d5e4d952d46296bc95 (diff) | |
download | llvm-bad64ee7e3bbadb95beb57dba53e43e96f3e5d02.zip llvm-bad64ee7e3bbadb95beb57dba53e43e96f3e5d02.tar.gz llvm-bad64ee7e3bbadb95beb57dba53e43e96f3e5d02.tar.bz2 |
Add forward_iterator wrapper
llvm-svn: 3061
-rw-r--r-- | llvm/include/Support/iterator | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/Support/iterator b/llvm/include/Support/iterator index 095d604..46cf967 100644 --- a/llvm/include/Support/iterator +++ b/llvm/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 |