tmp/tmptob8mwwa/{from.md → to.md}
RENAMED
|
@@ -5,15 +5,9 @@ reference operator*() const;
|
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:*
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
|
| 11 |
-
--
|
| 12 |
-
return *deref_tmp;
|
| 13 |
```
|
| 14 |
|
| 15 |
-
This operation must use an auxiliary member variable rather than a
|
| 16 |
-
temporary variable to avoid returning a reference that persists beyond
|
| 17 |
-
the lifetime of its associated iterator.
|
| 18 |
-
(See [[iterator.requirements]].)
|
| 19 |
-
|
|
|
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:*
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
+
Iterator tmp = current;
|
| 11 |
+
return *--tmp;
|
|
|
|
| 12 |
```
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|