C++ コンセプト: OutputIterator
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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.
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.
You can help to correct and verify the translation. Click here for instructions.
ForwardIterator、BidirectionalIterator、または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.
You can help to correct and verify the translation. Click here for instructions.
[編集] 要件
上記の要件に加えて、型
ItためOutputIteratorされるためには、インスタンスがiとoItの必要があります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. 'ポスト':&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; |