◐ Shell
clean mode source ↗

operator-(move_iterator) — cppreference.com

Материал из cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class Iterator > typename reverse_iterator<Iterator>::difference_type operator-( const move_iterator<Iterator>& lhs, const move_iterator<Iterator>& rhs );

(до C++11)

template< class Iterator1, class Iterator2 > auto operator-( const move_iterator<Iterator1>& lhs, const move_iterator<Iterator2>& rhs ) -> decltype(lhs.base() - rhs.base());

(начиная с C++11)

Возвращает расстояние между двумя адаптерами итераторов.

Оригинал:

Returns the distance between two iterator adaptors.

Текст был переведён автоматически используя Переводчик Google.
Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда.

Параметры

lhs, rhs

Итератор адаптеры для вычисления разницы

Оригинал:

iterator adaptors to compute the difference of

Текст был переведён автоматически используя Переводчик Google.
Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда.

Возвращаемое значение

lhs.base() - rhs.base()

Пример