diff options
Diffstat (limited to 'libcxx/test/support/test_iterators.h')
| -rw-r--r-- | libcxx/test/support/test_iterators.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcxx/test/support/test_iterators.h b/libcxx/test/support/test_iterators.h index cf164be806d..71509083e13 100644 --- a/libcxx/test/support/test_iterators.h +++ b/libcxx/test/support/test_iterators.h @@ -38,6 +38,9 @@ public: output_iterator& operator++() {++it_; return *this;} output_iterator operator++(int) {output_iterator tmp(*this); ++(*this); return tmp;} + + template <class T> + void operator,(T const &); }; template <class It> @@ -71,6 +74,9 @@ public: {return x.it_ == y.it_;} friend bool operator!=(const input_iterator& x, const input_iterator& y) {return !(x == y);} + + template <class T> + void operator,(T const &); }; template <class T, class U> @@ -120,6 +126,9 @@ public: {return x.it_ == y.it_;} friend bool operator!=(const forward_iterator& x, const forward_iterator& y) {return !(x == y);} + + template <class T> + void operator,(T const &); }; template <class T, class U> @@ -168,6 +177,9 @@ public: bidirectional_iterator& operator--() {--it_; return *this;} bidirectional_iterator operator--(int) {bidirectional_iterator tmp(*this); --(*this); return tmp;} + + template <class T> + void operator,(T const &); }; template <class T, class U> @@ -227,6 +239,9 @@ public: {random_access_iterator tmp(*this); tmp -= n; return tmp;} reference operator[](difference_type n) const {return it_[n];} + + template <class T> + void operator,(T const &); }; template <class T, class U> |

