C++ 概念: OutputIterator

来自cppreference.com

OutputIterator是一个Iterator可以写入到指向的元素.
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.
一个例子的一个类型实现OutputIterator的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.
ForwardIteratorBidirectionalIterator,或RandomAccessIterator满足OutputIterator要求,除了其自身的需求,它被描述为“'可变
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.

[编辑] 要求

除上述要求外,类型ItOutputIterator,实例ioIt必须:
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.
发表'“:&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;