Spec-Zone.ru › C++

operator-(std::move_iterator)

Defined in header <iterator>
template< class Iter1, class Iter2 >
auto operator-( const move_iterator<Iter1>& lhs,
                const move_iterator<Iter2>& rhs )
    -> decltype(lhs.base() - rhs.base());
(since C++11)
(constexpr since C++17)

Returns the distance between two iterator adaptors.

Parameters

lhs, rhs - iterator adaptors to compute the difference of

Return value

lhs.base() - rhs.base()

Example

See also

operator++operator++(int)operator+=operator+operator--operator--(int)operator-=operator-
advances or decrements the move_iterator
(public member function)
operator+
(C++11)
advances the iterator
(function template)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/iterator/move_iterator/operator-

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API