Skip to content

Commit 7fcc852

Browse files
jensmaurertkoeppe
authored andcommitted
Use \keyword for 'typedef'.
1 parent 462c5bf commit 7fcc852

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4693,7 +4693,7 @@
46934693
point in a translation unit and complete later on; the array types at
46944694
those two points (``array of unknown bound of \tcode{T}'' and ``array of
46954695
\tcode{N} \tcode{T}'') are different types. The type of a pointer to array of
4696-
unknown bound, or of a type defined by a \tcode{typedef} declaration to
4696+
unknown bound, or of a type defined by a \keyword{typedef} declaration to
46974697
be an array of unknown bound, cannot be completed.
46984698
\begin{example}
46994699
\indextext{type!example of incomplete}%

source/declarations.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
\grammarterm{assignment-expression} is of array or non-union class type.
187187

188188
\pnum
189-
If the \grammarterm{decl-specifier-seq} contains the \tcode{typedef}
189+
If the \grammarterm{decl-specifier-seq} contains the \keyword{typedef}
190190
specifier, the declaration is called a \defnx{typedef declaration}{declaration!typedef}
191191
and each \grammarterm{declarator-id}
192192
is declared to be a \grammarterm{typedef-name}, synonymous with its
@@ -196,7 +196,7 @@
196196
(\ref{class.conv.fct}).
197197
\end{note}
198198
If the
199-
\grammarterm{decl-specifier-seq} contains no \tcode{typedef} specifier, the
199+
\grammarterm{decl-specifier-seq} contains no \keyword{typedef} specifier, the
200200
declaration is called a \defnx{function declaration}{declaration!function} if
201201
the type associated with a \grammarterm{declarator-id} is a function type\iref{dcl.fct} and
202202
an \defnx{object declaration}{declaration!object} otherwise.
@@ -556,17 +556,17 @@
556556
\indextext{specifier!\idxcode{typedef}}
557557

558558
\pnum
559-
Declarations containing the \grammarterm{decl-specifier} \tcode{typedef}
559+
Declarations containing the \grammarterm{decl-specifier} \keyword{typedef}
560560
declare identifiers that can be used later for naming
561561
fundamental\iref{basic.fundamental} or compound\iref{basic.compound}
562-
types. The \tcode{typedef} specifier shall not be
562+
types. The \keyword{typedef} specifier shall not be
563563
combined in a \grammarterm{decl-specifier-seq} with any other kind of
564564
specifier except a \grammarterm{defining-type-specifier}, and it shall not be used in the
565565
\grammarterm{decl-specifier-seq} of a
566566
\grammarterm{parameter-declaration}\iref{dcl.fct} nor in the
567567
\grammarterm{decl-specifier-seq} of a
568568
\grammarterm{function-definition}\iref{dcl.fct.def}.
569-
If a \tcode{typedef} specifier appears in a declaration without a \grammarterm{declarator},
569+
If a \keyword{typedef} specifier appears in a declaration without a \grammarterm{declarator},
570570
the program is ill-formed.
571571

572572
\begin{bnf}
@@ -575,7 +575,7 @@
575575
simple-template-id
576576
\end{bnf}
577577

578-
A name declared with the \tcode{typedef} specifier becomes a
578+
A name declared with the \keyword{typedef} specifier becomes a
579579
\grammarterm{typedef-name}.
580580
A \grammarterm{typedef-name} names
581581
the type associated with the \grammarterm{identifier}\iref{dcl.decl}
@@ -607,7 +607,7 @@
607607
and the optional \grammarterm{attribute-specifier-seq} following the
608608
\grammarterm{identifier} appertains to that \grammarterm{typedef-name}.
609609
Such a \grammarterm{typedef-name} has the same
610-
semantics as if it were introduced by the \tcode{typedef} specifier. In
610+
semantics as if it were introduced by the \keyword{typedef} specifier. In
611611
particular, it does not define a new type.
612612
\begin{example}
613613
\begin{codeblock}

source/iostreams.tex

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

1202912029
\indexlibrarymember{value_type}{path}%
1203012030
\pnum
12031-
\tcode{value_type} is a \tcode{typedef} for the
12031+
\tcode{value_type} is a \keyword{typedef} for the
1203212032
operating system dependent encoded character type used to represent pathnames.
1203312033

1203412034
\indexlibrarymember{preferred_separator}{path}%

source/modules.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
\end{example}
304304
\begin{note}
305305
These constraints do not apply to
306-
type names introduced by \tcode{typedef} declarations
306+
type names introduced by \keyword{typedef} declarations
307307
and \grammarterm{alias-declaration}{s}.
308308
\begin{example}
309309
\begin{codeblock}

source/numerics.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,10 +2827,10 @@
28272827
\pnum
28282828
It is unspecified whether \tcode{D::param_type}
28292829
is declared as a (nested) \tcode{class}
2830-
or via a \tcode{typedef}.
2830+
or via a \keyword{typedef}.
28312831
In this subclause \ref{rand},
28322832
declarations of \tcode{D::param_type}
2833-
are in the form of \tcode{typedef}s
2833+
are in the form of \keyword{typedef}s
28342834
for convenience of exposition only.
28352835

28362836
\pnum
@@ -3928,7 +3928,7 @@
39283928
\pnum
39293929
\remarks
39303930
The choice of engine type
3931-
named by this \tcode{typedef}
3931+
named by this \keyword{typedef}
39323932
is \impldef{type of \tcode{default_random_engine}}.
39333933
\begin{note}
39343934
The implementation
@@ -3941,7 +3941,7 @@
39413941
for relatively casual, inexpert, and/or lightweight use.
39423942
Because different implementations
39433943
can select different underlying engine types,
3944-
code that uses this \tcode{typedef}
3944+
code that uses this \keyword{typedef}
39453945
need not generate identical sequences across implementations.
39463946
\end{note}
39473947
\end{itemdescr}%

source/time.tex

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

11361136
\pnum
11371137
\begin{note}
1138-
The \tcode{typedef} name \tcode{type} is a synonym for the
1138+
The \keyword{typedef} name \tcode{type} is a synonym for the
11391139
\tcode{duration} with the largest tick \tcode{period} possible where both
11401140
\tcode{duration} arguments will convert to it without requiring a division
11411141
operation. The representation of this type is intended to be able to hold any

0 commit comments

Comments
 (0)