Skip to content

Commit

Permalink
[range.reverse.overview] Replace 'equivalent to' with 'then' (#6966)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewillk committed May 9, 2024
1 parent 920722b commit 513635b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9660,26 +9660,21 @@
\item
If the type of \tcode{E} is
a (possibly cv-qualified) specialization of \tcode{reverse_view},
equivalent to \tcode{E.base()}.
then \tcode{E.base()}.
\item
Otherwise, if the type of \tcode{E} is \cv{} \tcode{subrange<reverse_iterator<I>, reverse_iterator<I>, K>}
for some iterator type \tcode{I} and
value \tcode{K} of type \tcode{subrange_kind},
\begin{itemize}
\item
if \tcode{K} is \tcode{subrange_kind::sized}, equivalent to:
\begin{codeblock}
subrange<I, I, K>(E.end().base(), E.begin().base(), E.size())
\end{codeblock}
if \tcode{K} is \tcode{subrange_kind::sized}, then
\tcode{subrange<I, I, K>(E.end().base(), E.begin().base(), E.size())};
\item
otherwise, equivalent to:
\begin{codeblock}
subrange<I, I, K>(E.end().base(), E.begin().base())
\end{codeblock}
otherwise, \tcode{subrange<I, I, K>(E.end().base(), E.begin().base())}.
\end{itemize}
However, in either case \tcode{E} is evaluated only once.
\item
Otherwise, equivalent to \tcode{reverse_view\{E\}}.
Otherwise, \tcode{reverse_view\{E\}}.
\end{itemize}

\pnum
Expand Down

0 comments on commit 513635b

Please sign in to comment.