<div class="t-tr-text">Concepts C + +:<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> Iterator
De cppreference.com
<metanoindex/>
Le concept Iterator décrit les types qui peuvent être utilisés pour identifier et parcourir les éléments d'un conteneur .
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.
Iterator est le concept de base utilisé par d'autres types d'itérateurs: InputIterator, OutputIterator, ForwardIterator, BidirectionalIterator et RandomAccessIterator. Les itérateurs peuvent être considérés comme une abstraction des pointeurs .
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exigences
Pour It type à être un Iterator, en plus des autres exigences, les conditions suivantes doivent être respectées pendant une i objet de ce type:
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.
| Expression | Return | Precondition |
|---|---|---|
*i
|
reference[1]
|
i is dereferenceable [2]
|
++i |
It& |
Voir aussi
Renvois
- ↑ 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.