What exactly is the ->* operator?
I've never used it before and just stumbled upon it in an article... I thought it would be the equivalent to *x->y but apparently it isn't.Here's what I tried, and gave me an error:struct cake { int...
View ArticleAnswer by user849425 for What exactly is the ->* operator?
It defines a pointer to a member.In an expression containing the –>* operator, the first operand must be of the type "pointer to the class type" of the type specified in the second operand, or it...
View ArticleAnswer by Serdalis for What exactly is the ->* operator?
The .* and ->* operators will point to member functions of a class or structure. The code below will show a simple example of how to use the .* operator, if you change the line:Value funcPtr =...
View ArticleAnswer by Remy Lebeau for What exactly is the ->* operator?
Pointer-to-Member Operators: .* and ->*
View ArticleAnswer by MerickOWA for What exactly is the ->* operator?
Its used when you have pointers to member functions.When you have a pointer to a function of a class, you call it in much the same way you would call any member functionobject.membername( ......
View Article