What are the Pointer-to-Member ->* and .* Operators in C++?
问题 Yes, I\'ve seen this question and this FAQ (wrong link) this FAQ, but I still don\'t understand what ->* and .* mean in C++. Those pages provide information about the operators (such as overloading), but don\'t seem to explain well what they are . What are ->* and .* in C++, and when do you need to use them as compared to -> and . ? 回答1: 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