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 10571057keyword \tcode {this} is a prvalue whose value is
10581058a 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 }
10691065Thus in a const member function, the object for which the function is
10701066called is accessed through a const access path.
10891085\end {example }
10901086
10911087\pnum
1088+ \begin {note }
10921089Similarly, \tcode {volatile} semantics\iref {dcl.type.cv } apply in
10931090volatile member functions when accessing the object and its
10941091non-static data members.
1092+ \end {note }
10951093
10961094\pnum
10971095A member function whose type has a \grammarterm {cv-qualifier-seq} \cvqual {cv1}
You can’t perform that action at this time.
0 commit comments