What are the pointer-to-member operators ->* and .* in C++?
I hope this example will clear things for you //we have a class struct X { void f() {} void g() {} }; typedef void (X::*pointer)(); //ok, let’s take a pointer and assign f to it. pointer somePointer = &X::f; //now I want to call somePointer. But for that, I need an object X x; … Read more