tmp/tmpg268ff3b/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Overview <a id="range.cache.latest.overview">[[range.cache.latest.overview]]</a>
|
| 2 |
+
|
| 3 |
+
`cache_latest_view` caches the last-accessed element of its underlying
|
| 4 |
+
sequence so that the element does not have to be recomputed on repeated
|
| 5 |
+
access.
|
| 6 |
+
|
| 7 |
+
[*Note 1*: This is useful if computation of the element to produce is
|
| 8 |
+
expensive. — *end note*]
|
| 9 |
+
|
| 10 |
+
The name `views::cache_latest` denotes a range adaptor object
|
| 11 |
+
[[range.adaptor.object]]. Let `E` be an expression. The expression
|
| 12 |
+
`views::cache_latest(E)` is expression-equivalent to
|
| 13 |
+
`cache_latest_view(E)`.
|
| 14 |
+
|