<div class="t-tr-text">C + +の概念:<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> Iterator
提供: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. |
Iteratorコンセプトは、コンテナの要素を識別し、通過するために使用することができるタイプを説明.Original:
The
Iterator concept describes types that can be used to identify and traverse the elements of a container.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.
Iterator他のイテレータ型で使用されるベースのコンセプトです:InputIterator、OutputIterator、ForwardIterator、BidirectionalIterator、とRandomAccessIterator。イテレータはポインタの抽象化と考えることができます.Original:
Iterator is the base concept used by other iterator types: InputIterator, OutputIterator, ForwardIterator, BidirectionalIterator, and RandomAccessIterator. Iterators can be thought of as an abstraction of pointers.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はIteratorであるためには、他の要件に加え、次の条件がそのような型のオブジェクトiために満たさなければなりません:Original:
For type
It to be an Iterator, in addition to the other requirements, the following conditions have to be satisfied for an object i of such type: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 | Precondition |
|---|---|---|
| *i | reference[1] | i is dereferenceable [2]
|
| ++i | It& |
[編集] も参照してください
[編集] 脚注
- ↑ As defined in iterator_traits
- ↑ It's a valid iterator pointing to an existing element
Original:
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.