Skip to content

Commit 915031d

Browse files
jensmaurerzygoloid
authored andcommitted
[meta.trans.other] Use hyphens, not underscores, for meta-functions.
1 parent 4394588 commit 915031d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

source/utilities.tex

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18030,38 +18030,38 @@
1803018030
\tcode{\placeholdernc{COPYCV}(const int, volatile short)} is an alias for
1803118031
\tcode{const volatile short}.
1803218032
\end{example}
18033-
\item \tcode{\placeholdernc{COND_RES}(X, Y)} be
18033+
\item \tcode{\placeholdernc{COND-RES}(X, Y)} be
1803418034
\tcode{decltype(false ?\ declval<X(\&)()>()() :\ declval<Y(\&)()>()())}.
1803518035
\end{itemize}
1803618036
Given types \tcode{A} and \tcode{B},
1803718037
let \tcode{X} be \tcode{remove_reference_t<A>},
1803818038
let \tcode{Y} be \tcode{remove_reference_t<B>}, and
18039-
let \tcode{\placeholdernc{COMMON_REF}(A, B)} be:
18039+
let \tcode{\placeholdernc{COMMON-\brk{}REF}(A, B)} be:
1804018040
\begin{itemize}
1804118041
\item If \tcode{A} and \tcode{B} are both lvalue reference types,
18042-
\tcode{\placeholdernc{COMMON_REF}(A, B)} is
18043-
\tcode{\placeholdernc{COND_RES}(\placeholdernc{COPYCV}(X, Y) \&,
18042+
\tcode{\placeholdernc{COMMON-REF}(A, B)} is
18043+
\tcode{\placeholdernc{COND-RES}(\placeholdernc{COPYCV}(X, Y) \&,
1804418044
\placeholdernc{COPYCV}(\brk{}Y, X) \&)} if that type exists
1804518045
and is a reference type.
1804618046
\item Otherwise, let \tcode{C} be
18047-
\tcode{remove_reference_t<\placeholdernc{COMMON_REF}(X\&, Y\&)>\&\&}.
18047+
\tcode{remove_reference_t<\placeholdernc{COMMON-REF}(X\&, Y\&)>\&\&}.
1804818048
If \tcode{A} and \tcode{B} are both rvalue reference types,
1804918049
\tcode{C} is well-formed, and
1805018050
\tcode{is_convertible_v<A, C> \&\& is_convertible_v<B, C>} is \tcode{true},
18051-
then \tcode{\placeholdernc{COMMON_REF}(A, B)} is \tcode{C}.
18051+
then \tcode{\placeholdernc{COMMON-REF}(A, B)} is \tcode{C}.
1805218052
\item Otherwise, let \tcode{D} be
18053-
\tcode{\placeholdernc{COMMON_REF}(const X\&, Y\&)}. If \tcode{A} is an rvalue
18053+
\tcode{\placeholdernc{COMMON-REF}(const X\&, Y\&)}. If \tcode{A} is an rvalue
1805418054
reference and \tcode{B} is an lvalue reference and \tcode{D} is
1805518055
well-formed and \tcode{is_convertible_v<A, D>} is
18056-
\tcode{true}, then \tcode{\placeholdernc{COMMON_REF}(A, B)} is \tcode{D}.
18056+
\tcode{true}, then \tcode{\placeholdernc{COMMON-REF}(A, B)} is \tcode{D}.
1805718057
\item Otherwise, if \tcode{A} is an lvalue reference and \tcode{B}
18058-
is an rvalue reference, then \tcode{\placeholdernc{COMMON_REF}(A, B)} is
18059-
\tcode{\placeholdernc{COMMON_REF}(B, A)}.
18060-
\item Otherwise, \tcode{\placeholdernc{COMMON_REF}(A, B)} is ill-formed.
18058+
is an rvalue reference, then \tcode{\placeholdernc{COMMON-REF}(A, B)} is
18059+
\tcode{\placeholdernc{COMMON-REF}(B, A)}.
18060+
\item Otherwise, \tcode{\placeholdernc{COMMON-REF}(A, B)} is ill-formed.
1806118061
\end{itemize}
1806218062

1806318063
If any of the types computed above is ill-formed, then
18064-
\tcode{\placeholdernc{COMMON_REF}(A, B)} is ill-formed.
18064+
\tcode{\placeholdernc{COMMON-REF}(A, B)} is ill-formed.
1806518065

1806618066
\pnum
1806718067
Note A:
@@ -18102,10 +18102,10 @@
1810218102
\end{codeblock}
1810318103
denotes a valid type, let \tcode{C} denote that type.
1810418104
\item Otherwise, if
18105-
\tcode{\placeholdernc{COND_RES}(\placeholdernc{CREF}(D1),
18105+
\tcode{\placeholdernc{COND-RES}(\placeholdernc{CREF}(D1),
1810618106
\placeholdernc{CREF}(D2))}
1810718107
denotes a type, let \tcode{C} denote the type
18108-
\tcode{decay_t<\placeholdernc{COND_RES}(\placeholdernc{CREF}(D1),
18108+
\tcode{decay_t<\placeholdernc{COND-RES}(\placeholdernc{CREF}(D1),
1810918109
\placeholdernc{CREF}(D2))>}.
1811018110
\end{itemize}
1811118111
In either case, the member \grammarterm{typedef-name} \tcode{type} shall denote
@@ -18155,15 +18155,15 @@
1815518155
denote the two types in the pack \tcode{T}. Then
1815618156
\begin{itemize}
1815718157
\item If \tcode{T1} and \tcode{T2} are reference types and
18158-
\tcode{\placeholdernc{COMMON_REF}(T1, T2)} is well-formed, then the member
18158+
\tcode{\placeholdernc{COMMON-REF}(T1, T2)} is well-formed, then the member
1815918159
typedef \tcode{type} denotes that type.
1816018160

1816118161
\item Otherwise, if
1816218162
\tcode{basic_common_reference<remove_cvref_t<T1>, remove_cvref_t<T2>,
1816318163
\brk{}\placeholdernc{XREF}(\brk{}T1), \placeholdernc{XREF}(T2)>::type}
1816418164
is well-formed, then the member typedef \tcode{type} denotes that type.
1816518165

18166-
\item Otherwise, if \tcode{\placeholdernc{COND_RES}(T1, T2)} is well-formed,
18166+
\item Otherwise, if \tcode{\placeholdernc{COND-RES}(T1, T2)} is well-formed,
1816718167
then the member typedef \tcode{type} denotes that type.
1816818168

1816918169
\item Otherwise, if \tcode{common_type_t<T1, T2>} is well-formed, then the

0 commit comments

Comments
 (0)