Skip to content

[tab:meta.trans.cv] Simplify wording for add_{const,volatile,cv} #7852

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
26 changes: 18 additions & 8 deletions source/meta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1712,22 +1712,32 @@
\indexlibraryglobal{add_const}%
\tcode{template<class T>\br
struct add_const;} &
If \tcode{T} is a reference, function, or top-level const-qualified
type, then \tcode{type} denotes \tcode{T}, otherwise
\tcode{T const}. \\ \rowsep
The member typedef \tcode{type} denotes \tcode{const T}.
\begin{tailnote}
\keyword{const} has no effect when \tcode{T} is a reference, function, or
top-level const-qualified type.
\end{tailnote}
Comment on lines +1716 to +1719
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether it's still worthy to talk about reference, function, or top-level cv-qualified types.

Also, I feel that it might make sense to group type_identity with these traits.

\\ \rowsep

\indexlibraryglobal{add_volatile}%
\tcode{template<class T>\br
struct add_volatile;} &
If \tcode{T} is a reference, function, or top-level volatile-qualified
type, then \tcode{type} denotes \tcode{T}, otherwise
\tcode{T volatile}. \\ \rowsep
The member typedef \tcode{type} denotes \tcode{volatile T}.
\begin{tailnote}
\keyword{volatile} has no effect when \tcode{T} is a reference, function, or
top-level volatile-qualified type.
\end{tailnote}
\\ \rowsep

\indexlibraryglobal{add_cv}%
\tcode{template<class T>\br
struct add_cv;} &
The member typedef \tcode{type} denotes
\tcode{add_const_t<add_volatile_t<T>>}. \\
The member typedef \tcode{type} denotes \tcode{const volatile T}.
\begin{tailnote}
\keyword{const} or \keyword{volatile} has no effect when \tcode{T} is a
reference, function, or top-level const- or volatile-qualified type, respectively.
\end{tailnote}
\\
\end{libreqtab2a}

\rSec3[meta.trans.ref]{Reference modifications}
Expand Down
Loading