Skip to content

Commit 9d31c99

Browse files
committed
s/(possibly cv-qualified)/\\cv{}~/ and allied changes.
1 parent e2d3939 commit 9d31c99

14 files changed

+126
-137
lines changed

source/basic.tex

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@
400400
type \tcode{T} (Clause~\ref{conv}, \ref{expr.type.conv},
401401
\ref{expr.dynamic.cast}, \ref{expr.static.cast}, \ref{expr.cast}), or
402402
\item an expression that is not a null pointer constant, and has type
403-
other than \cv{} \tcode{void*}, is converted to the type pointer to \tcode{T}
403+
other than \cv{}~\tcode{void*}, is converted to the type pointer to \tcode{T}
404404
or reference to \tcode{T} using a standard conversion
405405
(Clause~\ref{conv}), a \tcode{dynamic_cast}~(\ref{expr.dynamic.cast}) or
406406
a \tcode{static_cast}~(\ref{expr.static.cast}), or
@@ -2101,8 +2101,7 @@
21012101
\grammarterm{postfix-expression}. If the type \tcode{T} of the object
21022102
expression is of a class type \tcode{C}, the \grammarterm{type-name} is
21032103
also looked up in the scope of class \tcode{C}. At least one of the
2104-
lookups shall find a name that refers to (possibly cv-qualified)
2105-
\tcode{T}. \begin{example}
2104+
lookups shall find a name that refers to \cv{}~\tcode{T}. \begin{example}
21062105

21072106
\begin{codeblock}
21082107
struct A { };
@@ -3290,9 +3289,9 @@
32903289
\item
32913290
the pointer is used as the operand of a
32923291
\tcode{static_cast}~(\ref{expr.static.cast}), except when the conversion
3293-
is to pointer to \cv{} \tcode{void}, or to pointer to \cv{}
3294-
\tcode{void} and subsequently to pointer to either \cv{}
3295-
\tcode{char} or \cv{} \tcode{unsigned char}, or
3292+
is to pointer to \cv{}~\tcode{void}, or to pointer to \cv{}~\tcode{void}
3293+
and subsequently to pointer to either \cv{}~\tcode{char}
3294+
or \cv{}~\tcode{unsigned char}, or
32963295
\item
32973296
the pointer is used as the operand of a
32983297
\tcode{dynamic_cast}~(\ref{expr.dynamic.cast}).
@@ -3538,7 +3537,7 @@
35383537
\defnx{incompletely-defined object type}{object type!incompletely-defined}.%
35393538
\footnote{The size and layout of an instance of an incompletely-defined
35403539
object type is unknown.}
3541-
Incompletely-defined object types and \cv{} \tcode{void} are
3540+
Incompletely-defined object types and \cv{}~\tcode{void} are
35423541
\defnx{incomplete types}{type!incomplete}~(\ref{basic.fundamental}).
35433542
Objects shall not be defined to have an
35443543
incomplete type.
@@ -3593,7 +3592,7 @@
35933592
\pnum
35943593
\indextext{object type}%
35953594
An \defn{object type} is a (possibly cv-qualified) type that is not
3596-
a function type, not a reference type, and not \cv{} \tcode{void}.
3595+
a function type, not a reference type, and not \cv{}~\tcode{void}.
35973596

35983597
\pnum
35993598
Arithmetic types~(\ref{basic.fundamental}), enumeration types, pointer
@@ -3862,19 +3861,19 @@
38623861

38633862
\pnum
38643863
\indextext{type!\idxcode{void}}%
3865-
A type \cv{} \tcode{void}
3864+
A type \cv{}~\tcode{void}
38663865
is an incomplete type that cannot be completed; such a type has
38673866
an empty set of values. It is used as the return
38683867
type for functions that do not return a value. Any expression can be
3869-
explicitly converted to type \cv{} \tcode{void}~(\ref{expr.cast}).
3870-
An expression of type \cv{} \tcode{void} shall
3868+
explicitly converted to type \cv{}~\tcode{void}~(\ref{expr.cast}).
3869+
An expression of type \cv{}~\tcode{void} shall
38713870
be used only as an expression statement~(\ref{stmt.expr}), as an operand
38723871
of a comma expression~(\ref{expr.comma}), as a second or third operand
38733872
of \tcode{?:}~(\ref{expr.cond}), as the operand of
38743873
\tcode{typeid}, \tcode{noexcept}, or \tcode{decltype}, as
38753874
the expression in a return statement~(\ref{stmt.return}) for a function
3876-
with the return type \cv{} \tcode{void}, or as the operand of an explicit conversion
3877-
to type \cv{} \tcode{void}.
3875+
with the return type \cv{}~\tcode{void}, or as the operand of an explicit conversion
3876+
to type \cv{}~\tcode{void}.
38783877

38793878
\pnum
38803879
A value of type \tcode{std::nullptr_t} is a null pointer
@@ -3899,7 +3898,7 @@
38993898
\item \defnx{functions}{type!function}, which have parameters of given types and return
39003899
\tcode{void} or references or objects of a given type,~\ref{dcl.fct};
39013900

3902-
\item \defnx{pointers}{type!pointer} to \cv{} \tcode{void} or objects or functions (including
3901+
\item \defnx{pointers}{type!pointer} to \cv{}~\tcode{void} or objects or functions (including
39033902
static members of classes) of a given type,~\ref{dcl.ptr};
39043903

39053904
\item %
@@ -3944,7 +3943,7 @@
39443943

39453944
\pnum
39463945
\indextext{terminology!pointer}%
3947-
The type of a pointer to \cv{} \tcode{void} or a pointer to an object type is
3946+
The type of a pointer to \cv{}~\tcode{void} or a pointer to an object type is
39483947
called an \defn{object pointer type}. \begin{note} A pointer to \tcode{void}
39493948
does not have a pointer-to-object type, however, because \tcode{void} is not
39503949
an object type. \end{note} The type of a pointer that can designate a function
@@ -4039,9 +4038,9 @@
40394038
\tcode{void}
40404039
can be used to point to objects of
40414040
unknown type. Such a pointer shall be able to hold any object pointer.
4042-
An object of type \cv{}
4043-
\tcode{void*} shall have the same representation and alignment
4044-
requirements as \cv{} \tcode{char*}.
4041+
An object of type \cv{}~\tcode{void*}
4042+
shall have the same representation and alignment
4043+
requirements as \cv{}~\tcode{char*}.
40454044

40464045
\rSec2[basic.type.qualifier]{CV-qualifiers}
40474046

@@ -4115,7 +4114,7 @@
41154114
represents an arbitrary set of cv-qualifiers, i.e., one of
41164115
\{\tcode{const}\}, \{\tcode{volatile}\}, \{\tcode{const},
41174116
\tcode{volatile}\}, or the empty set.
4118-
For a type \cv{} \tcode{T}, the \defnx{top-level cv-qualifiers}{cv-qualifier!top-level}
4117+
For a type \cv{}~\tcode{T}, the \defnx{top-level cv-qualifiers}{cv-qualifier!top-level}
41194118
of that type are those denoted by \cv.
41204119
\begin{example}
41214120
The type corresponding to the \grammarterm{type-id}
@@ -4133,7 +4132,7 @@
41334132
\pnum
41344133
Cv-qualifiers applied to an array
41354134
type attach to the underlying element type, so the notation
4136-
``\cv{} \tcode{T}'', where \tcode{T} is an array type, refers to
4135+
``\cv{}~\tcode{T}'', where \tcode{T} is an array type, refers to
41374136
an array whose elements are so-qualified. An array type whose elements
41384137
are cv-qualified is also considered to have the same cv-qualifications
41394138
as its elements.%
@@ -4201,7 +4200,7 @@
42014200
is the object initialized by the prvalue;
42024201
a prvalue
42034202
that is used to compute the value of an operand of an operator or
4204-
that has type (possibly cv-qualified) \tcode{void}
4203+
that has type \cv{}~\tcode{void}
42054204
has no result object.
42064205
\begin{note}
42074206
Except when the prvalue is the operand of a \grammarterm{decltype-specifier},
@@ -4237,7 +4236,7 @@
42374236
\pnum
42384237
Unless otherwise indicated~(\ref{expr.call}),
42394238
a prvalue shall always have complete type or the \tcode{void} type.
4240-
A glvalue shall not have type \cv{} \tcode{void}.
4239+
A glvalue shall not have type \cv{}~\tcode{void}.
42414240
\begin{note}
42424241
A glvalue may have complete or incomplete non-\tcode{void} type.
42434242
Class and array prvalues can have cv-qualified types; other prvalues

source/classes.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@
12131213
The declaration of a non-inline
12141214
static data member in its class definition
12151215
is not a definition and may be of an incomplete type other than
1216-
\cv{} \tcode{void}. The definition for a static data
1216+
\cv{}~\tcode{void}. The definition for a static data
12171217
member that is not defined inline in the class definition
12181218
shall appear in a namespace scope enclosing the member's class
12191219
definition.

source/conversions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162

163163
\begin{itemize}
164164

165-
\item If \tcode{T} is (possibly cv-qualified) \tcode{std::nullptr_t}, the result is a
165+
\item If \tcode{T} is \cv{}~\tcode{std::nullptr_t}, the result is a
166166
null pointer constant~(\ref{conv.ptr}).
167167
\begin{note}
168168
Since no value is fetched from memory,

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@
17981798
In the case of a \tcode{return} statement with no operand
17991799
or with an operand of type \tcode{void},
18001800
\tcode{T} shall be either
1801-
\tcode{decltype(auto)} or \cv{} \tcode{auto}.
1801+
\tcode{decltype(auto)} or \cv{}~\tcode{auto}.
18021802

18031803
\pnum
18041804
If the deduction is for a \tcode{return} statement

source/declarators.tex

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@
676676
\end{note}
677677
\indextext{\idxcode{void\&}}%
678678
A declarator that specifies the type
679-
``reference to \cv{} \tcode{void}''
679+
``reference to \cv{}~\tcode{void}''
680680
is ill-formed.
681681

682682

@@ -794,9 +794,9 @@
794794
\indextext{reference collapsing}%
795795
If a \grammarterm{typedef-name}~(\ref{dcl.typedef}, \ref{temp.param})
796796
or a \grammarterm{decltype-specifier}~(\ref{dcl.type.simple}) denotes a type \tcode{TR} that
797-
is a reference to a type \tcode{T}, an attempt to create the type ``lvalue reference to \cv{}
798-
\tcode{TR}'' creates the type ``lvalue reference to \tcode{T}'', while an attempt to create
799-
the type ``rvalue reference to \cv{} \tcode{TR}'' creates the type \tcode{TR}.
797+
is a reference to a type \tcode{T}, an attempt to create the type ``lvalue reference to \cv{}~\tcode{TR}''
798+
creates the type ``lvalue reference to \tcode{T}'', while an attempt to create
799+
the type ``rvalue reference to \cv{}~\tcode{TR}'' creates the type \tcode{TR}.
800800
\begin{note} This rule is known as reference collapsing. \end{note}
801801
\begin{example}
802802

@@ -922,8 +922,7 @@
922922
of a class (\ref{class.static}),
923923
a member with reference type,
924924
or
925-
``\cv{}
926-
\tcode{void}''.
925+
``\cv{}~\tcode{void}''.
927926

928927
\begin{note}
929928
See also~\ref{expr.unary} and~\ref{expr.mptr.oper}.
@@ -962,8 +961,7 @@
962961
\tcode{T}
963962
is called the array
964963
\term{element type};
965-
this type shall not be a reference type, the (possibly cv-qualified) type
966-
\tcode{void},
964+
this type shall not be a reference type, \cv{}~\tcode{void},
967965
a function type or an abstract class type.
968966
\indextext{declaration!array}%
969967
If the
@@ -2309,7 +2307,7 @@
23092307
variable with a unique name \tcode{e} is introduced. If the
23102308
\grammarterm{assignment-expression} in the \grammarterm{initializer}
23112309
has array type \tcode{A} and no \grammarterm{ref-qualifier} is present, \tcode{e}
2312-
has type \cv{} \tcode{A} and each element is copy-initialized or direct-initialized
2310+
has type \cv{}~\tcode{A} and each element is copy-initialized or direct-initialized
23132311
from the corresponding element of the \grammarterm{assignment-expression} as specified
23142312
by the form of the \grammarterm{initializer}.
23152313
Otherwise, \tcode{e}
@@ -2381,8 +2379,8 @@
23812379
(in declaration order),
23822380
each \tcode{v}$_i$ is the
23832381
name of an lvalue that refers to the member \tcode{m}$_i$ of \tcode{e} and
2384-
whose type is \cv{} \tcode{T}$_i$, where \tcode{T}$_i$ is the declared type of
2385-
that member; the referenced type is \cv{} \tcode{T}$_i$. The lvalue is a
2382+
whose type is \cv{}~\tcode{T}$_i$, where \tcode{T}$_i$ is the declared type of
2383+
that member; the referenced type is \cv{}~\tcode{T}$_i$. The lvalue is a
23862384
bit-field if that member is a bit-field.
23872385
\begin{example}
23882386
\begin{codeblock}

source/exceptions.tex

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@
266266
\term{handler}~(\ref{except.handle}).
267267
If the type of the exception object would
268268
be an incomplete type or a pointer to an incomplete
269-
type other than (possibly cv-qualified)
270-
\tcode{void} the program is ill-formed.
269+
type other than \cv{}~\tcode{void} the program is ill-formed.
271270

272271
\pnum
273272
\indextext{exception handling!memory}%
@@ -491,16 +490,16 @@
491490
if
492491
\begin{itemize}
493492
\item%
494-
The \term{handler} is of type \cv{} \tcode{T} or
495-
\cv{} \tcode{T\&} and
493+
The \term{handler} is of type \cv{}~\tcode{T} or
494+
\cv{}~\tcode{T\&} and
496495
\tcode{E} and \tcode{T}
497496
are the same type (ignoring the top-level \grammarterm{cv-qualifiers}), or
498497
\item%
499-
the \term{handler} is of type \cv{} \tcode{T} or
500-
\cv{} \tcode{T\&} and
498+
the \term{handler} is of type \cv{}~\tcode{T} or
499+
\cv{}~\tcode{T\&} and
501500
\tcode{T} is an unambiguous public base class of \tcode{E}, or
502501
\item%
503-
the \term{handler} is of type \cv{} \tcode{T} or \tcode{const T\&}
502+
the \term{handler} is of type \cv{}~\tcode{T} or \tcode{const T\&}
504503
where \tcode{T} is a pointer or pointer to member type and
505504
\tcode{E} is a pointer or pointer to member type
506505
that can be converted to \tcode{T} by one or more of
@@ -517,7 +516,7 @@
517516
\end{itemize}
518517

519518
\item
520-
the \term{handler} is of type \cv{} \tcode{T} or \tcode{const T\&} where \tcode{T} is a pointer or pointer to member type and \tcode{E} is \tcode{std::nullptr_t}.
519+
the \term{handler} is of type \cv{}~\tcode{T} or \tcode{const T\&} where \tcode{T} is a pointer or pointer to member type and \tcode{E} is \tcode{std::nullptr_t}.
521520

522521
\end{itemize}
523522

@@ -657,7 +656,7 @@
657656

658657
\pnum
659658
The variable declared by the \grammarterm{exception-declaration}, of type
660-
\cv{} \tcode{T} or \cv{} \tcode{T\&}, is initialized from the exception object,
659+
\cv{}~\tcode{T} or \cv{}~\tcode{T\&}, is initialized from the exception object,
661660
of type \tcode{E}, as follows:
662661

663662
\begin{itemize}

source/expressions.tex

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
\end{note}
8181

8282
\pnum
83-
If a prvalue initially has the type ``\cv{} \tcode{T}'', where
83+
If a prvalue initially has the type ``\cv{}~\tcode{T}'', where
8484
\tcode{T} is a cv-unqualified non-class, non-array type, the type of
8585
the expression is adjusted to \tcode{T} prior to any further analysis.
8686

@@ -1519,8 +1519,7 @@
15191519
statically chosen function (i.e., ignoring the \tcode{virtual} keyword),
15201520
even if the type of the function actually called is different.
15211521
\indextext{type!incomplete}%
1522-
This return type shall be an object type, a reference type or \cv{}
1523-
\tcode{void}.
1522+
This return type shall be an object type, a reference type or \cv{}~\tcode{void}.
15241523

15251524
\pnum
15261525
\indextext{function argument|see{argument}}%
@@ -1663,7 +1662,7 @@
16631662
lvalue-to-rvalue~(\ref{conv.lval}), array-to-pointer~(\ref{conv.array}),
16641663
and function-to-pointer~(\ref{conv.func}) standard conversions are
16651664
performed on the argument expression.
1666-
An argument that has (possibly cv-qualified) type \tcode{std::nullptr_t} is converted
1665+
An argument that has type \cv{}~\tcode{std::nullptr_t} is converted
16671666
to type \tcode{void*}~(\ref{conv.ptr}).
16681667
After these conversions, if the
16691668
argument does not have arithmetic, enumeration, pointer, pointer to
@@ -1719,7 +1718,7 @@
17191718
definedness, and if defined in meaning) to the corresponding cast
17201719
expression~(\ref{expr.cast}).
17211720
\indextext{type!incomplete}%
1722-
If the type is (possibly cv-qualified) \tcode{void}
1721+
If the type is \cv{}~\tcode{void}
17231722
and the initializer is \tcode{()},
17241723
the expression is a prvalue of the specified type
17251724
that performs no initialization.
@@ -1901,7 +1900,7 @@
19011900
the value obtained is a copy of the original value
19021901
\end{note}
19031902
The operand shall be a modifiable lvalue. The type of the operand shall
1904-
be an arithmetic type other than \cv{} \tcode{bool},
1903+
be an arithmetic type other than \cv{}~\tcode{bool},
19051904
or a pointer to a complete object type. The value
19061905
of the operand object is modified by adding \tcode{1} to it.
19071906
The
@@ -2238,8 +2237,8 @@
22382237
\tcode{static_cast}.
22392238

22402239
\pnum
2241-
Any expression can be explicitly converted to type \cv{}
2242-
\tcode{void}, in which case it becomes a discarded-value
2240+
Any expression can be explicitly converted to type \cv{}~\tcode{void},
2241+
in which case it becomes a discarded-value
22432242
expression (Clause~\ref{expr}).
22442243
\begin{note}
22452244
However, if the value is in a temporary
@@ -2283,7 +2282,7 @@
22832282

22842283
\pnum
22852284
A value of a scoped enumeration type~(\ref{dcl.enum}) can be explicitly converted to an
2286-
integral type. When that type is \cv{} \tcode{bool}, the resulting value is
2285+
integral type. When that type is \cv{}~\tcode{bool}, the resulting value is
22872286
\tcode{false} if the original value is zero and \tcode{true} for all other
22882287
values. For the remaining integral types, the value is unchanged if the
22892288
original value can be represented by the
@@ -2460,8 +2459,7 @@
24602459
the overall
24612460
restriction that a \tcode{reinterpret_cast} cannot cast away constness.}
24622461
When a prvalue \tcode{v} of object pointer type is converted to
2463-
the object pointer type ``pointer to \cv{} \tcode{T}'', the result is \tcode{static_cast<\cv{} T*>(static_cast<\cv{}
2464-
void*>(v))}.
2462+
the object pointer type ``pointer to \cv{}~\tcode{T}'', the result is \tcode{static_cast<\cv{} T*>(static_cast<\cv{}~void*>(v))}.
24652463
\begin{note}
24662464
Converting a prvalue of type ``pointer to \tcode{T1}'' to
24672465
the type ``pointer to \tcode{T2}'' (where \tcode{T1} and \tcode{T2} are
@@ -2726,7 +2724,7 @@
27262724
Otherwise, if the type of the expression is \tcode{T}, the result has type ``pointer to
27272725
\tcode{T}'' and is a prvalue that is the address of the designated object~(\ref{intro.memory})
27282726
or a pointer to the designated function. \begin{note} In particular, the address of an
2729-
object of type ``\cv{} \tcode{T}'' is ``pointer to \cv{} \tcode{T}'', with the same
2727+
object of type ``\cv{}~\tcode{T}'' is ``pointer to \cv{}~\tcode{T}'', with the same
27302728
cv-qualification. \end{note}
27312729
For purposes of pointer arithmetic~(\ref{expr.add}) and
27322730
comparison~(\ref{expr.rel}, \ref{expr.eq}),
@@ -2840,7 +2838,7 @@
28402838
is modified by adding \tcode{1}.
28412839
\indextext{prefix \tcode{\dcr}}%
28422840
The operand shall be a modifiable lvalue. The type of the operand shall
2843-
be an arithmetic type other than \cv{} \tcode{bool},
2841+
be an arithmetic type other than \cv{}~\tcode{bool},
28442842
or a pointer to a completely-defined object type.
28452843
The result is the updated operand; it is an lvalue, and it is a
28462844
bit-field if the operand is a bit-field.
@@ -4085,7 +4083,7 @@
40854083

40864084
\pnum
40874085
For addition or subtraction, if the expressions \tcode{P} or \tcode{Q} have
4088-
type ``pointer to \cv{} \tcode{T}'', where \tcode{T} and the array element type
4086+
type ``pointer to \cv{}~\tcode{T}'', where \tcode{T} and the array element type
40894087
are not similar~(\ref{conv.qual}), the behavior is undefined.
40904088
\begin{note} In particular, a pointer to a base class cannot be used for
40914089
pointer arithmetic when the array contains objects of a derived class type.
@@ -4997,7 +4995,7 @@
49974995
\end{note}
49984996

49994997
\item
5000-
a conversion from type \cv{} \tcode{void *} to a pointer-to-object type;
4998+
a conversion from type \cv{}~\tcode{void*} to a pointer-to-object type;
50014999

50025000
\item
50035001
a dynamic cast~(\ref{expr.dynamic.cast});

0 commit comments

Comments
 (0)