File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1057
1057
keyword \tcode {this} is a prvalue whose value is
1058
1058
a pointer to the object for which the function is called.
1059
1059
\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}'' .
1068
1064
\begin {note }
1069
1065
Thus in a const member function, the object for which the function is
1070
1066
called is accessed through a const access path.
1089
1085
\end {example }
1090
1086
1091
1087
\pnum
1088
+ \begin {note }
1092
1089
Similarly, \tcode {volatile} semantics\iref {dcl.type.cv } apply in
1093
1090
volatile member functions when accessing the object and its
1094
1091
non-static data members.
1092
+ \end {note }
1095
1093
1096
1094
\pnum
1097
1095
A member function whose type has a \grammarterm {cv-qualifier-seq} \cvqual {cv1}
You can’t perform that action at this time.
0 commit comments