What does the -> sign mean in c++?


Or at least what it's called to google about it.


Indirect operator.

The meaning is something like this – for example, in a structure / class like

struct T {
    int t;

you are accessing the field (member) t of the object T obj as


If you have a pointer to a T* ptr object, then you access the field of the object pointed to by ptr as


or – look carefully 🙂 – how to


Here's exactly what it is…

Scroll to Top