self in c 2b 2b

Solutions on MaxInterview for self in c 2b 2b by the best coders in the world

showing results for - "self in c 2b 2b"
Philomène
04 Oct 2018
1// Using the * operator to get the actual instance
2auto result = (*this).do_something();
3
4// Using the -> operator to dereference and get/invoke member simultaneously
5auto result = this->do_something();