Skip to content

Commit f1afd40

Browse files
jensmaurertkoeppe
authored andcommitted
Replace \textit{cv} with \cv{} or \cvqual{...} as appopriate. (#1081)
1 parent 0a22a24 commit f1afd40

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

source/declarators.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687
\end{note}
688688
\indextext{\idxcode{void\&}}%
689689
A declarator that specifies the type
690-
``reference to \textit{cv} \tcode{void}''
690+
``reference to \cv{} \tcode{void}''
691691
is ill-formed.
692692

693693

@@ -936,7 +936,7 @@
936936
of a class (\ref{class.static}),
937937
a member with reference type,
938938
or
939-
``\textit{cv}
939+
``\cv{}
940940
\tcode{void}''.
941941

942942
\begin{note}
@@ -3474,9 +3474,9 @@
34743474
where the function types are otherwise the same,
34753475
\end{itemize}
34763476
and
3477-
\textit{cv1}
3477+
\cvqual{cv1}
34783478
is the same cv-qualification as, or greater cv-qualification than,
3479-
\textit{cv2}.
3479+
\cvqual{cv2}.
34803480
In all cases where the reference-related or reference-compatible relationship
34813481
of two types is used to establish the validity of a reference binding, and
34823482
\tcode{T1}
@@ -3543,7 +3543,7 @@
35433543
\item
35443544
Otherwise, the reference shall be an lvalue reference to a non-volatile
35453545
const type (i.e.,
3546-
\textit{cv1}
3546+
\cvqual{cv1}
35473547
shall be
35483548
\tcode{const}), or the reference shall be an rvalue reference.
35493549
\begin{example}
@@ -3624,9 +3624,9 @@
36243624
\tcode{T2}:
36253625
\begin{itemize}
36263626
\item
3627-
\textit{cv1}
3627+
\cvqual{cv1}
36283628
shall be the same cv-qualification as, or greater cv-qualification than,
3629-
\textit{cv2}; and
3629+
\cvqual{cv2}; and
36303630
\item
36313631
if the reference is an rvalue reference,
36323632
the initializer expression shall not be an lvalue.

source/exceptions.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,16 +477,16 @@
477477
if
478478
\begin{itemize}
479479
\item%
480-
The \term{handler} is of type \textit{cv} \tcode{T} or
481-
\textit{cv} \tcode{T\&} and
480+
The \term{handler} is of type \cv{} \tcode{T} or
481+
\cv{} \tcode{T\&} and
482482
\tcode{E} and \tcode{T}
483483
are the same type (ignoring the top-level \grammarterm{cv-qualifiers}), or
484484
\item%
485-
the \term{handler} is of type \textit{cv} \tcode{T} or
486-
\textit{cv} \tcode{T\&} and
485+
the \term{handler} is of type \cv{} \tcode{T} or
486+
\cv{} \tcode{T\&} and
487487
\tcode{T} is an unambiguous public base class of \tcode{E}, or
488488
\item%
489-
the \term{handler} is of type \textit{cv} \tcode{T} or \tcode{const T\&}
489+
the \term{handler} is of type \cv{} \tcode{T} or \tcode{const T\&}
490490
where \tcode{T} is a pointer or pointer to member type and
491491
\tcode{E} is a pointer or pointer to member type
492492
that can be converted to \tcode{T} by one or more of
@@ -503,7 +503,7 @@
503503
\end{itemize}
504504

505505
\item
506-
the \term{handler} is of type \textit{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}.
506+
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}.
507507

508508
\end{itemize}
509509

source/overloading.tex

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -525,17 +525,17 @@
525525
parameter is
526526

527527
\begin{itemize}
528-
\item ``lvalue reference to \textit{cv} \tcode{X}'' for functions declared
528+
\item ``lvalue reference to \cv{} \tcode{X}'' for functions declared
529529
without a \grammarterm{ref-qualifier} or with the
530530
\tcode{\&} \grammarterm{ref-qualifier}
531-
\item ``rvalue reference to \textit{cv} \tcode{X}'' for functions declared with the
531+
\item ``rvalue reference to \cv{} \tcode{X}'' for functions declared with the
532532
\tcode{\&\&} \grammarterm{ref-qualifier}
533533
\end{itemize}
534534

535535
where
536536
\tcode{X}
537537
is the class of which the function is a member and
538-
\textit{cv}
538+
\cv{}
539539
is the cv-qualification on the
540540
member function declaration.
541541
\begin{example}
@@ -712,7 +712,7 @@
712712
that is the left operand of the
713713
\tcode{.}
714714
operator
715-
has type ``\textit{cv}
715+
has type ``\cv{}
716716
\tcode{T}''
717717
where
718718
\tcode{T}
@@ -801,7 +801,7 @@
801801
\grammarterm{primary-expression}
802802
\tcode{E}
803803
in the function call syntax evaluates
804-
to a class object of type ``\textit{cv}
804+
to a class object of type ``\cv{}
805805
\tcode{T}'',
806806
then the set of candidate
807807
functions includes at least the function call operators of
@@ -826,7 +826,7 @@
826826
where
827827
\grammarterm{cv-qualifier}
828828
is the same cv-qualification as, or a greater cv-qualification than,
829-
\textit{cv},
829+
\cv{},
830830
and where
831831
\grammarterm{conversion-type-id}
832832
denotes the type ``pointer to function
@@ -1205,7 +1205,7 @@
12051205
cv-qualified class type is determined in terms of a corresponding non-reference
12061206
copy-initialization. \end{note}
12071207
Assuming that
1208-
``\textit{cv1} \tcode{T}'' is the type of the object being initialized, with
1208+
``\cvqual{cv1} \tcode{T}'' is the type of the object being initialized, with
12091209
\tcode{T}
12101210
a class type,
12111211
the candidate functions are selected as follows:
@@ -1217,7 +1217,7 @@
12171217
are candidate functions.
12181218
\item
12191219
When the type of the initializer expression is a class type
1220-
``\textit{cv} \tcode{S}'',
1220+
``\cv{} \tcode{S}'',
12211221
the non-explicit conversion functions of
12221222
\tcode{S}
12231223
and its base classes are considered.
@@ -1227,7 +1227,7 @@
12271227
``reference to possibly \cv-qualified \tcode{T}''
12281228
and the constructor is
12291229
called with a single argument in the context of
1230-
direct-initialization of an object of type ``\textit{cv2} \tcode{T}'', explicit
1230+
direct-initialization of an object of type ``\cvqual{cv2} \tcode{T}'', explicit
12311231
conversion functions are also considered.
12321232
Those that are not hidden within
12331233
\tcode{S}
@@ -1266,8 +1266,8 @@
12661266
being initialized.
12671267
Overload resolution is used to select the
12681268
conversion function to be invoked.
1269-
Assuming that ``\textit{cv1} \tcode{T}'' is the
1270-
type of the object being initialized, and ``\textit{cv} \tcode{S}'' is the type
1269+
Assuming that ``\cvqual{cv1} \tcode{T}'' is the
1270+
type of the object being initialized, and ``\cv{} \tcode{S}'' is the type
12711271
of the initializer expression, with
12721272
\tcode{S}
12731273
a class type,
@@ -1295,11 +1295,11 @@
12951295
are considered to yield the cv-unqualified version of that type
12961296
for this process of selecting candidate functions.
12971297
Conversion functions that return ``reference to
1298-
\textit{cv2}
1298+
\cvqual{cv2}
12991299
\tcode{X}''
13001300
return
13011301
lvalues or xvalues, depending on the type of reference, of type
1302-
``\textit{cv2}
1302+
``\cvqual{cv2}
13031303
\tcode{X}''
13041304
and are therefore considered to yield
13051305
\tcode{X}
@@ -1323,9 +1323,9 @@
13231323
function to an initializer expression.
13241324
Overload resolution is used to select the
13251325
conversion function to be invoked.
1326-
Assuming that ``reference to \textit{cv1} \tcode{T}'' is the
1326+
Assuming that ``reference to \cvqual{cv1} \tcode{T}'' is the
13271327
type of the reference being initialized, and
1328-
``\textit{cv} \tcode{S}'' is the type
1328+
``\cv{} \tcode{S}'' is the type
13291329
of the initializer expression, with
13301330
\tcode{S}
13311331
a class type,
@@ -1337,13 +1337,13 @@
13371337
and its base classes are considered.
13381338
Those non-explicit conversion functions that are not hidden within
13391339
\tcode{S}
1340-
and yield type ``lvalue reference to \textit{cv2} \tcode{T2}''
1340+
and yield type ``lvalue reference to \cvqual{cv2} \tcode{T2}''
13411341
(when initializing an lvalue reference or an rvalue reference to function) or
13421342
``\nonterminal{cv2} \tcode{T2}''
13431343
or ``rvalue reference to \nonterminal{cv2} \tcode{T2}'' (when initializing an
13441344
rvalue reference or an lvalue reference to function),
1345-
where ``\textit{cv1} \tcode{T}'' is reference-compatible~(\ref{dcl.init.ref})
1346-
with ``\textit{cv2} \tcode{T2}'',
1345+
where ``\cvqual{cv1} \tcode{T}'' is reference-compatible~(\ref{dcl.init.ref})
1346+
with ``\cvqual{cv2} \tcode{T2}'',
13471347
are candidate functions. For direct-initialization, those explicit
13481348
conversion functions that are not hidden within \tcode{S} and yield
13491349
type ``lvalue reference to \cvqual{cv2} \tcode{T2}'' or ``\cvqual{cv2}

source/utilities.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13442,7 +13442,7 @@
1344213442
wN)}~(\ref{func.require}) shall be a valid expression for some
1344313443
values \textit{w1, w2, ..., wN}, where
1344413444
\tcode{N == sizeof...(bound_args)}.
13445-
The \textit{cv}-qualifiers \textit{cv} of the call wrapper \tcode{g},
13445+
The cv-qualifiers \cv{} of the call wrapper \tcode{g},
1344613446
as specified below, shall be neither \tcode{volatile} nor \tcode{const volatile}.
1344713447

1344813448
\pnum\returns
@@ -13481,7 +13481,7 @@
1348113481
expression for some
1348213482
values \textit{w1, w2, ..., wN}, where
1348313483
\tcode{N == sizeof...(bound_args)}.
13484-
The \textit{cv}-qualifiers \textit{cv} of the call wrapper \tcode{g},
13484+
The cv-qualifiers \cv{} of the call wrapper \tcode{g},
1348513485
as specified below, shall be neither \tcode{volatile} nor \tcode{const volatile}.
1348613486

1348713487
\pnum
@@ -13513,7 +13513,7 @@
1351313513
corresponding types \tcode{V1, V2, ..., VN} depend on the
1351413514
types \tcode{TiD} derived from
1351513515
the call to \tcode{bind} and the
13516-
\textit{cv}-qualifiers \textit{cv} of the call wrapper \tcode{g} as follows:
13516+
cv-qualifiers \cv{} of the call wrapper \tcode{g} as follows:
1351713517

1351813518
\begin{itemize}
1351913519
\item if \tcode{TiD} is \tcode{reference_wrapper<T>}, the
@@ -13522,15 +13522,15 @@
1352213522
\item if the value of \tcode{is_bind_expression_v<TiD>}
1352313523
is \tcode{true}, the argument is \tcode{tid(std::forward<Uj>(\brk{}uj)...)} and its
1352413524
type \tcode{Vi} is
13525-
\tcode{result_of_t<TiD \textit{cv} \& (Uj\&\&...)>\&\&};
13525+
\tcode{result_of_t<TiD \cv{} \& (Uj\&\&...)>\&\&};
1352613526

1352713527
\item if the value \tcode{j} of \tcode{is_placeholder_v<TiD>}
1352813528
is not zero, the argument is \tcode{std::forward<Uj>(uj)}
1352913529
and its type \tcode{Vi}
1353013530
is \tcode{Uj\&\&};
1353113531

1353213532
\item otherwise, the value is \tcode{tid} and its type \tcode{Vi}
13533-
is \tcode{TiD \textit{cv} \&}.
13533+
is \tcode{TiD \cv{} \&}.
1353413534
\end{itemize}
1353513535

1353613536
\rSec3[func.bind.place]{Placeholders}
@@ -14918,7 +14918,7 @@
1491814918

1491914919
\pnum
1492014920
For any given type \tcode{T}, the result of applying one of these templates to
14921-
\tcode{T} and to \textit{cv-qualified} \tcode{T} shall yield the same result.
14921+
\tcode{T} and to \cv{} \tcode{T} shall yield the same result.
1492214922

1492314923
\pnum
1492414924
\begin{note}
@@ -15004,7 +15004,7 @@
1500415004

1500515005
\pnum
1500615006
For any given type \tcode{T}, the result of applying one of these templates to
15007-
\tcode{T}, and to \textit{cv-qualified} \tcode{T} shall yield the same result.
15007+
\tcode{T} and to \cv{} \tcode{T} shall yield the same result.
1500815008

1500915009
\begin{libreqtab3b}{Composite type category predicates}{tab:type-traits.composite}
1501015010
\\ \topline

0 commit comments

Comments
 (0)