Skip to content

Commit b3bde03

Browse files
eisenwavetkoeppe
authored andcommitted
LWG4490 Allow calling std::ranges::size in ranges algorithms
1 parent 555727c commit b3bde03

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎source/algorithms.tex‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,8 @@
269269
a corresponding iterator argument is initialized with \tcode{ranges::begin(r)} and
270270
\item
271271
a corresponding sentinel argument is initialized with \tcode{ranges::end(r)},
272-
or \tcode{ranges::next(ranges::\brk{}begin(r), ranges::end(r))}
273-
if the type of \tcode{r} models \libconcept{forward_range}
274-
and computing \tcode{ranges::next} meets the specified complexity requirements.
272+
or \tcode{ranges::begin(r) + N}
273+
where \tcode{N} is equal to \tcode{ranges::distance(r)}.
275274
\end{itemize}
276275

277276
\pnum

0 commit comments

Comments
 (0)