<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
![]() | 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. |
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.
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:
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.
[modifier]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.
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& |
[modifier]Voir aussi
[modifier]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.
You can help to correct and verify the translation. Click here for instructions.