File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 134
134
struct dangling;
135
135
136
136
template<@\libconcept {range}@ R>
137
- using borrowed_iterator_t = conditional_t<@ \libconcept {borrowed_range}@<R>, iterator_t<R>, dangling> ;
137
+ using borrowed_iterator_t = @ \seebelow@ ;
138
138
139
139
template<@\libconcept {range}@ R>
140
- using borrowed_subrange_t =
141
- conditional_t<@\libconcept {borrowed_range}@<R>, subrange<iterator_t<R>>, dangling>;
140
+ using borrowed_subrange_t = @\seebelow@ ;
142
141
143
142
// \ref {range.empty }, empty view
144
143
template<class T>
1884
1883
model \libconcept {borrowed_range}.
1885
1884
\end {example }
1886
1885
1886
+ \pnum
1887
+ For a type \tcode {R} that models \libconcept {range}:
1888
+ \begin {itemize }
1889
+ \item
1890
+ if \tcode {R} models \libconcept {borrowed_range}, then
1891
+ \tcode {borrowed_iterator_t<R>} denotes \tcode {iterator_t<R>}, and
1892
+ \tcode {borrowed_subrange_t<R>} denotes \tcode {subrange<iterator_t<R>>};
1893
+ \item
1894
+ otherwise,
1895
+ both \tcode {borrowed_iterator_t<R>} and \tcode {borrowed_subrange_t<R>}
1896
+ denote \tcode {dangling}.
1897
+ \end {itemize }
1898
+
1887
1899
\rSec 1[range.factories]{Range factories}
1888
1900
1889
1901
\rSec 2[range.factories.general]{General}
You can’t perform that action at this time.
0 commit comments