C++ – use instead of the arrow operator, `->`

c++pointers

What is the arrow operator (->) a synonym for?

Best Solution

The following two expressions are equivalent:

a->b

(*a).b

(subject to operator overloading, as Konrad mentions, but that's unusual).