From Jason Turner

[range.cache.latest.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpg268ff3b/{from.md → to.md} +14 -0
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
+