Skip to content

Commit 5438155

Browse files
[tab:meta.trans.cv] Simplify wording for add_{const,volatile,cv}
Also changes the style to west const. Wordings about reference, function, or top-level _cv_-qualified types are moved to notes as they are redundant at least since C++11.
1 parent 05300d7 commit 5438155

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

source/meta.tex

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,22 +1712,32 @@
17121712
\indexlibraryglobal{add_const}%
17131713
\tcode{template<class T>\br
17141714
struct add_const;} &
1715-
If \tcode{T} is a reference, function, or top-level const-qualified
1716-
type, then \tcode{type} denotes \tcode{T}, otherwise
1717-
\tcode{T const}. \\ \rowsep
1715+
The member typedef \tcode{type} denotes \tcode{const T}.
1716+
\begin{tailnote}
1717+
\keyword{const} has no effect when \tcode{T} is a reference, function, or
1718+
top-level const-qualified type.
1719+
\end{tailnote}
1720+
\\ \rowsep
17181721

17191722
\indexlibraryglobal{add_volatile}%
17201723
\tcode{template<class T>\br
17211724
struct add_volatile;} &
1722-
If \tcode{T} is a reference, function, or top-level volatile-qualified
1723-
type, then \tcode{type} denotes \tcode{T}, otherwise
1724-
\tcode{T volatile}. \\ \rowsep
1725+
The member typedef \tcode{type} denotes \tcode{volatile T}.
1726+
\begin{tailnote}
1727+
\keyword{volatile} has no effect when \tcode{T} is a reference, function, or
1728+
top-level volatile-qualified type.
1729+
\end{tailnote}
1730+
\\ \rowsep
17251731

17261732
\indexlibraryglobal{add_cv}%
17271733
\tcode{template<class T>\br
17281734
struct add_cv;} &
1729-
The member typedef \tcode{type} denotes
1730-
\tcode{add_const_t<add_volatile_t<T>>}. \\
1735+
The member typedef \tcode{type} denotes \tcode{const volatile T}.
1736+
\begin{tailnote}
1737+
\keyword{const} or \keyword{volatile} has no effect when \tcode{T} is a
1738+
reference, function, or top-level const- or volatile-qualified type, respectively.
1739+
\end{tailnote}
1740+
\\
17311741
\end{libreqtab2a}
17321742

17331743
\rSec3[meta.trans.ref]{Reference modifications}

0 commit comments

Comments
 (0)