tmp/tmpwk3bztgv/{from.md → to.md}
RENAMED
|
@@ -3,12 +3,14 @@
|
|
| 3 |
A class or pointer type `X` meets the requirements of an output iterator
|
| 4 |
if `X` meets the *Cpp17Iterator* requirements [[iterator.iterators]] and
|
| 5 |
the expressions in [[outputiterator]] are valid and have the indicated
|
| 6 |
semantics.
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
[*Note 1*: The only valid use of an `operator*` is on the left side of
|
| 9 |
the assignment statement. Assignment through the same value of the
|
| 10 |
-
iterator happens only once.
|
| 11 |
-
attempt to pass through the same iterator twice. They should be
|
| 12 |
-
single-pass algorithms. Equality and inequality might not be
|
| 13 |
defined. — *end note*]
|
| 14 |
|
|
|
|
| 3 |
A class or pointer type `X` meets the requirements of an output iterator
|
| 4 |
if `X` meets the *Cpp17Iterator* requirements [[iterator.iterators]] and
|
| 5 |
the expressions in [[outputiterator]] are valid and have the indicated
|
| 6 |
semantics.
|
| 7 |
|
| 8 |
+
*Recommended practice:* The implementation of an algorithm on output
|
| 9 |
+
iterators should never attempt to pass through the same iterator twice;
|
| 10 |
+
such an algorithm should be a single-pass algorithm.
|
| 11 |
+
|
| 12 |
[*Note 1*: The only valid use of an `operator*` is on the left side of
|
| 13 |
the assignment statement. Assignment through the same value of the
|
| 14 |
+
iterator happens only once. Equality and inequality are not necessarily
|
|
|
|
|
|
|
| 15 |
defined. — *end note*]
|
| 16 |
|