Skip to content

Commit 65e7018

Browse files
committed
[std] Use \keyword for access specifiers.
1 parent 1503bfa commit 65e7018

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/classes.tex

+6-6
Original file line numberDiff line numberDiff line change
@@ -4112,7 +4112,7 @@
41124112
Members of a class defined with the keyword
41134113
\keyword{class}
41144114
are
4115-
\tcode{private}
4115+
\keyword{private}
41164116
by default.
41174117
Members of a class defined with the keywords
41184118
\keyword{struct} or \keyword{union}
@@ -4352,19 +4352,19 @@
43524352

43534353
\pnum
43544354
If a class is declared to be a base class\iref{class.derived} for another class using the
4355-
\tcode{public}
4355+
\keyword{public}
43564356
access specifier, the
43574357
public members of the base class are accessible as
43584358
public members of the derived class and
43594359
protected members of the base class are accessible as
43604360
protected members of the derived class.
43614361
If a class is declared to be a base class for another class using the
4362-
\tcode{protected}
4362+
\keyword{protected}
43634363
access specifier, the
43644364
public and protected members of the base class are accessible as
43654365
protected members of the derived class.
43664366
If a class is declared to be a base class for another class using the
4367-
\tcode{private}
4367+
\keyword{private}
43684368
access specifier, the
43694369
public and protected
43704370
members of the base class are accessible as private
@@ -4380,12 +4380,12 @@
43804380
In the absence of an
43814381
\grammarterm{access-specifier}
43824382
for a base class,
4383-
\tcode{public}
4383+
\keyword{public}
43844384
is assumed when the derived class is
43854385
defined with the \grammarterm{class-key}
43864386
\keyword{struct}
43874387
and
4388-
\tcode{private}
4388+
\keyword{private}
43894389
is assumed when the class is
43904390
defined with the \grammarterm{class-key}
43914391
\keyword{class}.

0 commit comments

Comments
 (0)