What is the .* operator and what does it do?

Advertisement

  • It is the same as the class member access operator, or arrow operator (->), which allows you to access a member of an object through a pointer to the object.
  • It is the pointer to member operator, and it allows you to access a member of an object through a pointer to that specific class member.
  • It is the member access with address of operator, which returns the address of a class or struct member.
  • It is a combination of the member access operator (.) and the dereference operator (*), so it allows you to access the object that a member pointer points to.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.