<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
Da cppreference.com.
![]() | 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. |
Il concetto
Iterator
descrive tipi che possono essere utilizzati per identificare e attraversare gli elementi di un contenitore.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
è 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.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.
[modifica]Requisiti
Per
It
tipo ad essere un Iterator, in aggiunta alle altre, le seguenti condizioni devono essere soddisfatti per un i
oggetto di questo tipo: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& |
[modifica]Vedi anche
[modifica]Note
- ↑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.