Espacios de nombres
Variantes
Acciones

operator<,<=,>,>=(std::reverse_iterator)

De cppreference.com

 
 
Biblioteca Iterator
Primitivas iterador
Original:
Iterator primitives
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Adaptadores iterador
Original:
Iterator adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iteradores Stream
Original:
Stream iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operaciones iterador
Original:
Iterator operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
Rango de acceso
Original:
Range access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
 
std::reverse_iterator
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Terceros funciones
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==operator!=operator<operator>
 
template< class Iterator1, class Iterator2 >

bool operator==( const reverse_iterator<Iterator1>& lhs,

                 const reverse_iterator<Iterator2>& rhs );
(1)
template< class Iterator1, class Iterator2 >

bool operator!=( const reverse_iterator<Iterator1>& lhs,

                 const reverse_iterator<Iterator2>& rhs );
(2)
template< class Iterator1, class Iterator2 >

bool operator<( const reverse_iterator<Iterator1>& lhs,

                const reverse_iterator<Iterator2>& rhs );
(3)
template< class Iterator1, class Iterator2 >

bool operator<=( const reverse_iterator<Iterator1>& lhs,

                 const reverse_iterator<Iterator2>& rhs );
(4)
template< class Iterator1, class Iterator2 >

bool operator>( const reverse_iterator<Iterator1>& lhs,

                const reverse_iterator<Iterator2>& rhs );
(5)
template< class Iterator1, class Iterator2 >

bool operator>=( const reverse_iterator<Iterator1>& lhs,

                 const reverse_iterator<Iterator2>& rhs );
(6)

Compares the underlying iterators. Inverse comparisons are applied in order to take into account that the iterator order is reversed.

[editar] Parámetros

lhs, rhs - iterator adaptors to compare

[editar] Return Value

1) lhs.base() == rhs.base()
2) lhs.base() != rhs.base()
3) lhs.base() > rhs.base()
4) lhs.base() >= rhs.base()
5) lhs.base() < rhs.base()
6) lhs.base() <= rhs.base()

[editar] Ejemplo