◐ Shell
clean mode source ↗

Conceptos C++: ForwardIterator - cppreference.com

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í.

A ForwardIterator es un Iterator que puede leer los datos del elemento en punta-a .

Original:

A ForwardIterator is an Iterator that can read data from the pointed-to element.

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

A diferencia de un InputIterator, garantiza la validez cuando se utiliza en algoritmos multipase .

Original:

Unlike an InputIterator, it guarantees validity when used in multipass algorithms.

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

Requisitos

Además de los requisitos anteriores, para un tipo It ser un Forwardterator, un ejemplo de i It debe:

Original:

In addition to the above requirements, for a type It to be an Forwardterator, an instance i of It must:

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

Expression Return Equivalent expression Notes
++i const It& After this, copies of i are still valid
i++ value_type temp = *i; ++i; return temp;
*i++ reference

Un mutable ForwardIterator es un ForwardIterator que además cumple con los requisitos OutputIterator .

Original:

A mutable ForwardIterator is a ForwardIterator that additionally satisfies the OutputIterator requirements.

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