Namensräume
Varianten
Aktionen

C + + Konzepte: ForwardIterator

Aus cppreference.com
< cpp‎ | concept
 
 
C + + Konzepte
Basic
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Library-Wide
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Container
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Container-Elemente
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Zufallszahlen
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Concurrency
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
BasicLockable(C++11)
Lockable(C++11)
TimedLockable(C++11)
Mutex(C++11)
TimedMutex(C++11)
Andere
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 

Ein ForwardIterator ist ein Iterator, der Daten aus dem Element lesen kann, auf das er zeigt.

Im Gegensatz zu einem InputIterator bleibt er auch in Multipass-Algorithmen gültig.

[Bearbeiten] Anforderungen

Zusätzlich zu den oben genannten Anforderungen für einen Typ It ein Forwardterator sein, muss eine Instanz des i It:

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

A mutable ForwardIterator ist ein ForwardIterator, die zusätzlich erfüllt die OutputIterator Anforderungen .