From Jason Turner

[range.concat.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5n8vallv/{from.md → to.md} +26 -0
tmp/tmp5n8vallv/{from.md → to.md} RENAMED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Overview <a id="range.concat.overview">[[range.concat.overview]]</a>
2
+
3
+ `concat_view` presents a view that concatenates all the underlying
4
+ ranges.
5
+
6
+ The name `views::concat` denotes a customization point object
7
+ [[customization.point.object]]. Given a pack of subexpressions `Es...`,
8
+ the expression `views::concat(Es...)` is expression-equivalent to
9
+
10
+ - `views::all(Es...)` if `Es` is a pack with only one element whose type
11
+ models `input_range`,
12
+ - otherwise, `concat_view(Es...)`.
13
+
14
+ [*Example 1*:
15
+
16
+ ``` cpp
17
+ vector<int> v1{1, 2, 3}, v2{4, 5}, v3{};
18
+ array a{6, 7, 8};
19
+ auto s = views::single(9);
20
+ for (auto&& i : views::concat(v1, v2, v3, a, s)) {
21
+ print("{} ", i); // prints 1 2 3 4 5 6 7 8 9
22
+ }
23
+ ```
24
+
25
+ — *end example*]
26
+