Add forward_iterator wrapper

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-24 22:07:13 +00:00
parent 98f1bfb4a0
commit dd39be6c96

View 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