Skip to content

Commit 0a7b360

Browse files
jensmaurerzygoloid
authored andcommitted
[class.this] Cleanup verbose and redundant exposition.
1 parent b973550 commit 0a7b360

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source/classes.tex

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,14 +1057,10 @@
10571057
keyword \tcode{this} is a prvalue whose value is
10581058
a pointer to the object for which the function is called.
10591059
\indextext{\idxcode{this}!type of}%
1060-
The type of \tcode{this} in a member function of a class \tcode{X} is
1061-
\tcode{X*}.
1062-
If the member function is declared \tcode{const}, the type of
1063-
\tcode{this} is \tcode{const} \tcode{X*},
1064-
if the member function is declared \tcode{volatile}, the type of
1065-
\tcode{this} is \tcode{volatile} \tcode{X*}, and if the member function
1066-
is declared \tcode{const} \tcode{volatile}, the type of \tcode{this} is
1067-
\tcode{const} \tcode{volatile} \tcode{X*}.
1060+
The type of \tcode{this} in a member function
1061+
whose type has a \grammarterm{cv-qualifier-seq} \cv{} and
1062+
whose class is \tcode{X}
1063+
is ``pointer to \cv{} \tcode{X}''.
10681064
\begin{note}
10691065
Thus in a const member function, the object for which the function is
10701066
called is accessed through a const access path.
@@ -1089,9 +1085,11 @@
10891085
\end{example}
10901086

10911087
\pnum
1088+
\begin{note}
10921089
Similarly, \tcode{volatile} semantics\iref{dcl.type.cv} apply in
10931090
volatile member functions when accessing the object and its
10941091
non-static data members.
1092+
\end{note}
10951093

10961094
\pnum
10971095
A member function whose type has a \grammarterm{cv-qualifier-seq} \cvqual{cv1}

0 commit comments

Comments
 (0)