Pointers to Members


Syntax

  pointer_to_member_expression:
      cast_expression
      pointer_to_member_expression .* cast_expression
      pointer_to_member_expression -> cast_expression

Notes

In the above syntax statement:

If the resultant type is a method, the only use to which it can be put is in a function call. The resultant type is an lvalue only if the member being pointed to is an lvalue.