Lines Matching refs:__n
454 typename iterator_traits<_InputIter>::difference_type __n, input_iterator_tag)
456 for (; __n > 0; --__n)
463 typename iterator_traits<_BiDirIter>::difference_type __n, bidirectional_iterator_tag)
465 if (__n >= 0)
466 for (; __n > 0; --__n)
469 for (; __n < 0; ++__n)
476 typename iterator_traits<_RandIter>::difference_type __n, random_access_iterator_tag)
478 __i += __n;
484 typename iterator_traits<_InputIter>::difference_type __n)
486 __advance(__i, __n, typename iterator_traits<_InputIter>::iterator_category());
520 typename iterator_traits<_ForwardIter>::difference_type __n = 1,
523 _VSTD::advance(__x, __n);
531 typename iterator_traits<_BidiretionalIter>::difference_type __n = 1,
534 _VSTD::advance(__x, -__n);
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)
572 {current -= __n; return *this;}
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)
576 {current += __n; return *this;}
577 _LIBCPP_INLINE_VISIBILITY reference operator[](difference_type __n) const
578 {return current[-__n-1];}
640 operator+(typename reverse_iterator<_Iter>::difference_type __n, const reverse_iterator<_Iter>& __x)
642 return reverse_iterator<_Iter>(__x.base() - __n);
971 _LIBCPP_INLINE_VISIBILITY move_iterator operator+ (difference_type __n) const
972 {return move_iterator(__i + __n);}
973 _LIBCPP_INLINE_VISIBILITY move_iterator& operator+=(difference_type __n)
974 {__i += __n; return *this;}
975 _LIBCPP_INLINE_VISIBILITY move_iterator operator- (difference_type __n) const
976 {return move_iterator(__i - __n);}
977 _LIBCPP_INLINE_VISIBILITY move_iterator& operator-=(difference_type __n)
978 {__i -= __n; return *this;}
979 _LIBCPP_INLINE_VISIBILITY reference operator[](difference_type __n) const
981 return static_cast<reference>(__i[__n]);
1044 operator+(typename move_iterator<_Iter>::difference_type __n, const move_iterator<_Iter>& __x)
1046 return move_iterator<_Iter>(__x.base() + __n);
1208 _LIBCPP_INLINE_VISIBILITY __wrap_iter operator+ (difference_type __n) const _NOEXCEPT
1209 {__wrap_iter __w(*this); __w += __n; return __w;}
1210 _LIBCPP_INLINE_VISIBILITY __wrap_iter& operator+=(difference_type __n) _NOEXCEPT
1213 _LIBCPP_ASSERT(__get_const_db()->__addable(this, __n),
1216 __i += __n;
1219 _LIBCPP_INLINE_VISIBILITY __wrap_iter operator- (difference_type __n) const _NOEXCEPT
1220 {return *this + (-__n);}
1221 _LIBCPP_INLINE_VISIBILITY __wrap_iter& operator-=(difference_type __n) _NOEXCEPT
1222 {*this += -__n; return *this;}
1223 _LIBCPP_INLINE_VISIBILITY reference operator[](difference_type __n) const _NOEXCEPT
1226 _LIBCPP_ASSERT(__get_const_db()->__subscriptable(this, __n),
1229 return __i[__n];
1402 operator+(typename __wrap_iter<_Iter>::difference_type __n,
1405 __x += __n;