File tree Expand file tree Collapse file tree 1 file changed +40
-3
lines changed
Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,8 @@ mentioning this point.
6060A similar issue had been reported as <iref ref =" 3385" />, which was eventually adopted as a C++20 DR. This
6161DR indicates that LWG approved the decision to require `copyable` in order to model a `common_iterator`.
6262</p >
63- </discussion >
6463
65- <resolution >
64+ <superseded >
6665<p >
6766This wording is relative to <paper num =" N4993" />.
6867</p >
@@ -93,6 +92,44 @@ if constexpr (<ins>(semiregular<iterator_t<<i>maybe-const</i><<i>is-con
9392</blockquote >
9493</blockquote >
9594</li >
96- </ol ></resolution >
95+ </ol >
96+ </superseded >
97+
98+ <note >2025-03-05; Hewill Kang provides improved wording</note >
99+ </discussion >
100+
101+ <resolution >
102+ <p >
103+ This wording is relative to <paper num =" N5001" />.
104+ </p >
105+
106+ <ol >
107+ <li ><p >Modify <sref ref =" [range.concat.view]" /> as indicated:</p >
108+
109+ <blockquote >
110+ <pre >
111+ constexpr auto end() const
112+ requires (range< const Views> && ...) && <i >concatable</i >< const Views...> ;
113+ </pre >
114+ <blockquote >
115+ <p >
116+ -7- <i >Effects</i >: Let <tt ><i >is-const</i ></tt > be `true` for the const-qualified overload, and `false`
117+ otherwise. Equivalent to:
118+ </p >
119+ <blockquote ><pre >
120+ constexpr auto N = sizeof...(Views);
121+ if constexpr (<ins ><i >all-forward</i >< <i >is-const</i >, Views...> && </ins >
122+ common_range< <i >maybe-const</i >< <i >is-const</i >, Views...[N - 1]>> ) {
123+ return <i >iterator</i >< <i >is-const</i >> (this, in_place_index< N - 1> ,
124+ ranges::end(std::get< N - 1> (<i >views_</i >)));
125+ } else {
126+ return default_sentinel;
127+ }
128+ </pre ></blockquote >
129+ </blockquote >
130+ </blockquote >
131+ </li >
132+ </ol >
133+ </resolution >
97134
98135</issue >
You can’t perform that action at this time.
0 commit comments