◐ Shell
clean mode source ↗

operator-(move_iterator) - cppreference.com

De 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 );

(até C++11)

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

(desde C++11)

Retorna a distância entre os dois adaptadores de iterador.

Original:

Returns the distance between two iterator adaptors.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

lhs, rhs -

adaptadores iterador para calcular a diferença de

Original:

iterator adaptors to compute the difference of

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

lhs.base() - rhs.base()

Exemplo