C + + Konzepte: OutputIterator
Aus 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. |
Ein
OutputIterator
ist ein Iterator
, die spitzen-to-Element schreiben kann . 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.
You can help to correct and verify the translation. Click here for instructions.
Ein Beispiel eines Typs, der
OutputIterator
implementiert ist std :: ostream_iterator .Original:
An example of a type that implements
OutputIterator
is std :: ostream_iterator.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.
Wenn
ForwardIterator
, BidirectionalIterator
oder RandomAccessIterator
erfüllt die Anforderungen OutputIterator
zusätzlich zu seiner eigenen Anforderungen, es wie beschrieben 'veränderlich' .Original:
When
ForwardIterator
, BidirectionalIterator
, or RandomAccessIterator
satisfies the OutputIterator
requirements in addition to its own requirements, it is described as mutable.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.
[Bearbeiten] Anforderungen
Zusätzlich zu der Anforderung für einen Typ
It
ein OutputIterator
sein, Instanzen und i
o
von It
muss: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.
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. 'Post': &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; |
|
*i++ = o | *i = o; ++i; |