C + + Konzepte: Iterator
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
Die
Iterator Konzept beschreibt Typen, die zur Identifizierung und durchqueren die Elemente eines Containers kann .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 ist das grundlegende Konzept von anderen Iterator verwendet: InputIterator, OutputIterator, ForwardIterator, BidirectionalIterator und RandomAccessIterator. Iteratoren kann man sich als eine Abstraktion von Zeigern gedacht werden .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.
Anforderungen
Für Typ
It ein Iterator zu sein, zusätzlich zu den sonstigen Anforderungen, müssen die folgenden Bedingungen für ein Objekt i solcher Art erfüllt sein: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& |
Siehe auch
Fußnoten
- ↑ 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.