Conceptos C++: OutputIterator
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Un
OutputIterator
es un Iterator
que puede escribir en el elemento puntiagudo 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.
You can help to correct and verify the translation. Click here for instructions.
Un ejemplo de un tipo que implementa
OutputIterator
es 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.
Cuando
ForwardIterator
, BidirectionalIterator
o RandomAccessIterator
satisface los requisitos OutputIterator
, además de sus propias necesidades, que se describe como 'mutable' .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.
[editar] Requisitos
Además de los requisitos anteriores, para un tipo
It
ser un OutputIterator
, instancias y i
o
de It
debe: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. 'Nota': &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; |