Skip to content

Add extra notes to ranges::c* to mirror ranges::* #6046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,13 @@
\tcode{const_iterator<decltype(U)>(U)}.
\end{itemize}

\pnum
\begin{note}
Diagnosable ill-formed cases above
result in substitution failure when \tcode{ranges::cbegin(E)}
appears in the immediate context of a template instantiation.
\end{note}

\pnum
\begin{note}
Whenever \tcode{ranges::cbegin(E)} is a valid expression, its type models
Expand Down Expand Up @@ -778,6 +785,13 @@
\tcode{const_sentinel<decltype(U)>(U)}.
\end{itemize}

\pnum
\begin{note}
Diagnosable ill-formed cases above
result in substitution failure when \tcode{ranges::cend(E)}
appears in the immediate context of a template instantiation.
\end{note}

\pnum
\begin{note}
Whenever \tcode{ranges::cend(E)} is a valid expression,
Expand Down Expand Up @@ -939,6 +953,13 @@
\tcode{const_iterator<decltype(U)>(U)}.
\end{itemize}

\pnum
\begin{note}
Diagnosable ill-formed cases above
result in substitution failure when \tcode{ranges::crbegin(E)}
appears in the immediate context of a template instantiation.
\end{note}

\pnum
\begin{note}
Whenever \tcode{ranges::crbegin(E)} is a valid expression, its
Expand Down Expand Up @@ -967,6 +988,13 @@
\tcode{const_sentinel<decltype(U)>(U)}.
\end{itemize}

\pnum
\begin{note}
Diagnosable ill-formed cases above
result in substitution failure when \tcode{ranges::crend(E)}
appears in the immediate context of a template instantiation.
\end{note}

\pnum
\begin{note}
Whenever \tcode{ranges::crend(E)} is a valid expression,
Expand Down Expand Up @@ -1192,6 +1220,13 @@
\tcode{\exposid{as-const-pointer}(ranges::data(\exposid{possi\-bly-const-range}(t)))}.
\end{itemize}

\pnum
\begin{note}
Diagnosable ill-formed cases above
result in substitution failure when \tcode{ranges::cdata(E)}
appears in the immediate context of a template instantiation.
\end{note}

\pnum
\begin{note}
Whenever \tcode{ranges::cdata(E)} is a valid expression, it
Expand Down