tmp/tmpsuzvsgo9/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Concept <a id="iterator.concept.input">[[iterator.concept.input]]</a>
|
| 2 |
+
|
| 3 |
+
The `input_iterator` concept defines requirements for a type whose
|
| 4 |
+
referenced values can be read (from the requirement for
|
| 5 |
+
`indirectly_readable` [[iterator.concept.readable]]) and which can be
|
| 6 |
+
both pre- and post-incremented.
|
| 7 |
+
|
| 8 |
+
[*Note 1*: Unlike the *Cpp17InputIterator* requirements
|
| 9 |
+
[[input.iterators]], the `input_iterator` concept does not need equality
|
| 10 |
+
comparison since iterators are typically compared to
|
| 11 |
+
sentinels. — *end note*]
|
| 12 |
+
|
| 13 |
+
``` cpp
|
| 14 |
+
template<class I>
|
| 15 |
+
concept input_iterator =
|
| 16 |
+
input_or_output_iterator<I> &&
|
| 17 |
+
indirectly_readable<I> &&
|
| 18 |
+
requires { typename ITER_CONCEPT(I); } &&
|
| 19 |
+
derived_from<ITER_CONCEPT(I), input_iterator_tag>;
|
| 20 |
+
```
|
| 21 |
+
|