Lines Matching refs:reverse_iterator
77 class reverse_iterator
92 reverse_iterator();
93 explicit reverse_iterator(Iterator x);
94 template <class U> reverse_iterator(const reverse_iterator<U>& u);
98 reverse_iterator& operator++();
99 reverse_iterator operator++(int);
100 reverse_iterator& operator--();
101 reverse_iterator operator--(int);
102 reverse_iterator operator+ (difference_type n) const;
103 reverse_iterator& operator+=(difference_type n);
104 reverse_iterator operator- (difference_type n) const;
105 reverse_iterator& operator-=(difference_type n);
111 operator==(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
115 operator<(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
119 operator!=(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
123 operator>(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
127 operator>=(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
131 operator<=(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
134 typename reverse_iterator<Iterator1>::difference_type
135 operator-(const reverse_iterator<Iterator1>& x, const reverse_iterator<Iterator2>& y);
138 reverse_iterator<Iterator>
139 operator+(typename reverse_iterator<Iterator>::difference_type n, const reverse_iterator<Iterator>&…
141 template <class Iterator> reverse_iterator<Iterator> make_reverse_iterator(Iterator i); // C++14
320 template <class E> reverse_iterator<const E*> rbegin(initializer_list<E> il); // C++14
321 template <class E> reverse_iterator<const E*> rend(initializer_list<E> il); // C++14
322 template <class T, size_t N> reverse_iterator<T*> rbegin(T (&array)[N]); // C++14
323 template <class T, size_t N> reverse_iterator<T*> rend(T (&array)[N]); // C++14
539 class _LIBCPP_TYPE_VIS_ONLY reverse_iterator
556 _LIBCPP_INLINE_VISIBILITY reverse_iterator() : current() {}
557 _LIBCPP_INLINE_VISIBILITY explicit reverse_iterator(_Iter __x) : __t(__x), current(__x) {}
558 … template <class _Up> _LIBCPP_INLINE_VISIBILITY reverse_iterator(const reverse_iterator<_Up>& __u)
563 _LIBCPP_INLINE_VISIBILITY reverse_iterator& operator++() {--current; return *this;}
564 _LIBCPP_INLINE_VISIBILITY reverse_iterator operator++(int)
565 {reverse_iterator __tmp(*this); --current; return __tmp;}
566 _LIBCPP_INLINE_VISIBILITY reverse_iterator& operator--() {++current; return *this;}
567 _LIBCPP_INLINE_VISIBILITY reverse_iterator operator--(int)
568 {reverse_iterator __tmp(*this); ++current; return __tmp;}
569 _LIBCPP_INLINE_VISIBILITY reverse_iterator operator+ (difference_type __n) const
570 {return reverse_iterator(current - __n);}
571 _LIBCPP_INLINE_VISIBILITY reverse_iterator& operator+=(difference_type __n)
573 _LIBCPP_INLINE_VISIBILITY reverse_iterator operator- (difference_type __n) const
574 {return reverse_iterator(current + __n);}
575 _LIBCPP_INLINE_VISIBILITY reverse_iterator& operator-=(difference_type __n)
584 operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
592 operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
600 operator!=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
608 operator>(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
616 operator>=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
624 operator<=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
631 typename reverse_iterator<_Iter1>::difference_type
632 operator-(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
639 reverse_iterator<_Iter>
640 operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
642 return reverse_iterator<_Iter>(__x.base() - __n);
648 reverse_iterator<_Iter> make_reverse_iterator(_Iter __i)
650 return reverse_iterator<_Iter>(__i);
1463 reverse_iterator<_Tp*> rbegin(_Tp (&__array)[_Np])
1465 return reverse_iterator<_Tp*>(__array + _Np);
1470 reverse_iterator<_Tp*> rend(_Tp (&__array)[_Np])
1472 return reverse_iterator<_Tp*>(__array);
1477 reverse_iterator<const _Ep*> rbegin(initializer_list<_Ep> __il)
1479 return reverse_iterator<const _Ep*>(__il.end());
1484 reverse_iterator<const _Ep*> rend(initializer_list<_Ep> __il)
1486 return reverse_iterator<const _Ep*>(__il.begin());