◐ Shell
clean mode source ↗

<div class="t-tr-text">C + +: conceitos<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> OutputIterator

De cppreference.com

<metanoindex/>

Um OutputIterator é um Iterator que pode escrever para o elemento apontado para.

Original:

An OutputIterator is an Iterator that can write to the pointed-to element.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Um exemplo de um tipo que implementa OutputIterator é std :: ostream_iterator.

Original:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Quando ForwardIterator, BidirectionalIterator, ou RandomAccessIterator satisfaz os requisitos OutputIterator além das suas próprias necessidades, ele é descrito como 'mutável'.

Original:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Requisitos

Além do requisito acima, para um tipo It ser um OutputIterator, instâncias i e o de It deve:

Original:

In addition to the above requirement, for a type It to be an OutputIterator, instances i and o of It must:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Expression Return Equivalent expression Notes
*i = o it may not be possible to write twice in the same iterator
++i It& After this, copies of i may be invalidated.

Mensagem ': &r == &++r

Original:

Post: &r == &++r

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

i++ const It& It temp = i; ++i; return temp;
*i++ = o *i = o; ++i;