Conceptos C++: Iterator
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
El concepto
Iterator
describe los tipos que se pueden utilizar para identificar y atravesar los elementos de un contenedor .Original:
The
Iterator
concept describes types that can be used to identify and traverse the elements of a container.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Iterator
es el concepto base utilizada por otros tipos de iteradores: InputIterator
, OutputIterator
, ForwardIterator
, BidirectionalIterator
y RandomAccessIterator
. Los iteradores puede ser pensado como una abstracción de punteros .Original:
Iterator
is the base concept used by other iterator types: InputIterator
, OutputIterator
, ForwardIterator
, BidirectionalIterator
, and RandomAccessIterator
. Iterators can be thought of as an abstraction of pointers.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Requisitos
Para
It
tipo sea un Iterator, además de los otros requisitos, las siguientes condiciones deben cumplirse para que un i
objeto de tal tipo:Original:
For type
It
to be an Iterator, in addition to the other requirements, the following conditions have to be satisfied for an object i
of such type:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Expression | Return | Precondition |
---|---|---|
*i | reference[1] | i is dereferenceable [2]
|
++i | It& |
[editar] Ver también
[editar] Notas al pie
- ↑ As defined in iterator_traits
- ↑ It's a valid iterator pointing to an existing element
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.