<div class="t-tr-text">C + +: concetti<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
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
Iterator descrive tipi che possono essere utilizzati per identificare e attraversare gli elementi di un contenitore.Iterator concept describes types that can be used to identify and traverse the elements of a container.You can help to correct and verify the translation. Click here for instructions.
Iterator è il concetto di base utilizzato da altri tipi di iteratori: InputIterator, OutputIterator, ForwardIterator, BidirectionalIterator e RandomAccessIterator. Iteratori può essere pensato come un'astrazione di puntatori.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.You can help to correct and verify the translation. Click here for instructions.
Requisiti
It tipo ad essere un Iterator, in aggiunta alle altre, le seguenti condizioni devono essere soddisfatti per un i oggetto di questo tipo: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: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& |
Vedi anche
Note
- ↑ As defined in iterator_traits
- ↑ It's a valid iterator pointing to an existing element
You can help to correct and verify the translation. Click here for instructions.