this 指针与成员函数调用模型 | C++

本章覆盖:`this`;implicit object parameter 的高层认知;`this->`;返回 `*this`;method chaining;const member function 与 this;constructor / destructor 中 this 的边界;lambda 捕获 this;不把 this 当作对象所有权指针。

本章知识点

  • this
  • implicit object parameter 的高层认知
  • this->
  • 返回 *this
  • method chaining
  • const member function 与 this
  • constructor / destructor 中 this 的边界
  • lambda 捕获 this
  • 不把 this 当作对象所有权指针