self in c++ code example
Example: self in c++
// Using the * operator to get the actual instance
auto result = (*this).do_something();
// Using the -> operator to dereference and get/invoke member simultaneously
auto result = this->do_something();