Excessive use of `this` in C++ [duplicate]
问题 This question already has answers here : When should I make explicit use of the `this` pointer? (12 answers) Closed 2 years ago . I'm dealing with a large code base that uses the following construct throughout class MyClass { public: void f(int x); private: int x; }; void MyClass::f(int x) { ' ' this->x = x; ' ' } Personally, I'd always used and hence prefer the form class MyClass { public: void f(int x); private: int _x; }; void MyClass::f(int x) { ' ' _x = x; ' ' } The reasons I prefer the