What exactly is the ->* operator?

后端 未结 4 1754
执笔经年
执笔经年 2021-01-14 06:32

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

4条回答
  •  梦毁少年i
    2021-01-14 06:49

    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 must be of a type unambiguously derived from that class. MSDN

提交回复
热议问题