Skip to content

Commit ee3577b

Browse files
jensmaurertkoeppe
authored andcommitted
[class.spaceship] Use math mode for the entire formula, not just for the subscript. (#2034)
Also use \dotsc, not center dots, for comma-separated lists.
1 parent e36658d commit ee3577b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

source/special.tex

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,16 +3338,16 @@
33383338
form a list of subobjects.
33393339
In that list, any subobject of array type is recursively expanded
33403340
to the sequence of its elements, in the order of increasing subscript.
3341-
Let \tcode{x}$_i$ be an lvalue denoting the $i^\textrm{th}$ element
3341+
Let $\tcode{x}_i$ be an lvalue denoting the $i^\text{th}$ element
33423342
in the expanded list of subobjects for an object \tcode{x}
33433343
(of length $n$),
3344-
where \tcode{x}$_i$ is
3344+
where $\tcode{x}_i$ is
33453345
formed by a sequence of
33463346
derived-to-base conversions\iref{over.best.ics},
33473347
class member access expressions\iref{expr.ref}, and
33483348
array subscript expressions\iref{expr.sub} applied to \tcode{x}.
3349-
The type of the expression \tcode{x}$_i$ \tcode{<=>} \tcode{x}$_i$
3350-
is denoted by \tcode{R}$_i$.
3349+
The type of the expression $\tcode{x}_i$ \tcode{<=>} $\tcode{x}_i$
3350+
is denoted by $\tcode{R}_i$.
33513351
It is unspecified
33523352
whether virtual base class subobjects are compared more than once.
33533353

@@ -3357,11 +3357,11 @@
33573357
is \tcode{auto},
33583358
then the return type is deduced as
33593359
the common comparison type (see below) of
3360-
\tcode{R}$_0$, \tcode{R}$_1$, $\cdots$, \tcode{R}$_{n-1}$.
3360+
$\tcode{R}_0$, $\tcode{R}_1$, $\dotsc$, $\tcode{R}_{n-1}$.
33613361
\begin{note}
33623362
Otherwise,
33633363
the program will be ill-formed
3364-
if the expression \tcode{x}$_i$ \tcode{<=>} \tcode{x}$_i$
3364+
if the expression $\tcode{x}_i$ \tcode{<=>} $\tcode{x}_i$
33653365
is not implicitly convertible to the declared return type for any $i$.
33663366
\end{note}
33673367
If the return type is deduced as \tcode{void},
@@ -3372,46 +3372,46 @@
33723372
of the defaulted three-way comparison operator function
33733373
with parameters \tcode{x} and \tcode{y} of the same type
33743374
is determined by comparing corresponding elements
3375-
\tcode{x}$_i$ and \tcode{y}$_i$
3375+
$\tcode{x}_i$ and $\tcode{y}_i$
33763376
in the expanded lists of subobjects for \tcode{x} and \tcode{y}
33773377
until the first index $i$
3378-
where \tcode{x}$_i$ \tcode{<=>} \tcode{y}$_i$
3379-
yields a result value \tcode{v}$_i$ where \tcode{v}$_i$\tcode{ != 0},
3378+
where $\tcode{x}_i$ \tcode{<=>} $\tcode{y}_i$
3379+
yields a result value $\tcode{v}_i$ where $\tcode{v}_i \mathrel{\tcode{!=}} 0$,
33803380
contextually converted to \tcode{bool}, yields \tcode{true};
3381-
\tcode{V} is \tcode{v}$_i$ converted to \tcode{R}.
3381+
\tcode{V} is $\tcode{v}_i$ converted to \tcode{R}.
33823382
If no such index exists, \tcode{V} is
33833383
\tcode{std::strong_ordering::equal} converted to \tcode{R}.
33843384

33853385
\pnum
33863386
The \defn{common comparison type} \tcode{U}
33873387
of a possibly-empty list of $n$ types
3388-
\tcode{T}$_0$, \tcode{T}$_1$, $\cdots$, \tcode{T}$_{n-1}$
3388+
$\tcode{T}_0$, $\tcode{T}_1$, $\dotsc$, $\tcode{T}_{n-1}$
33893389
is defined as follows:
33903390

33913391
\begin{itemize}
33923392
\item
3393-
If any \tcode{T}$_i$
3393+
If any $\tcode{T}_i$
33943394
is not a comparison category type\iref{cmp.categories},
33953395
\tcode{U} is \tcode{void}.
33963396

33973397
\item
33983398
Otherwise, if
3399-
at least one \tcode{T}$_i$ is \tcode{std::weak_equality}, or
3400-
at least one \tcode{T}$_i$ is \tcode{std::strong_equality} and
3401-
at least one \tcode{T}$_j$ is \tcode{std::partial_ordering} or
3399+
at least one $\tcode{T}_i$ is \tcode{std::weak_equality}, or
3400+
at least one $\tcode{T}_i$ is \tcode{std::strong_equality} and
3401+
at least one $\tcode{T}_j$ is \tcode{std::partial_ordering} or
34023402
\tcode{std::weak_ordering},
34033403
\tcode{U} is \tcode{std::weak_equality}\iref{cmp.weakeq}.
34043404

34053405
\item
3406-
Otherwise, if at least one \tcode{T}$_i$ is \tcode{std::strong_equality},
3406+
Otherwise, if at least one $\tcode{T}_i$ is \tcode{std::strong_equality},
34073407
\tcode{U} is \tcode{std::strong_equality}\iref{cmp.strongeq}.
34083408

34093409
\item
3410-
Otherwise, if at least one \tcode{T}$_i$ is \tcode{std::partial_ordering},
3410+
Otherwise, if at least one $\tcode{T}_i$ is \tcode{std::partial_ordering},
34113411
\tcode{U} is \tcode{std::partial_ordering}\iref{cmp.partialord}.
34123412

34133413
\item
3414-
Otherwise, if at least one \tcode{T}$_i$ is \tcode{std::weak_ordering},
3414+
Otherwise, if at least one $\tcode{T}_i$ is \tcode{std::weak_ordering},
34153415
\tcode{U} is \tcode{std::weak_ordering}\iref{cmp.weakord}.
34163416

34173417
\item

0 commit comments

Comments
 (0)