I’ve seen several occurrences in tutorials where i variables with an “m” in front of the actual name.
At first I thought it meant “my” but after really keeping a lookout for these “m”‘s I’m no longer sure what it means. Does anyone know where this convention comes from?
I’ve seen several occurrences in tutorials where i variables with an m in front
Share
It’s commonly used to mean that variable is a member of class. For example it’s useful in situations like this:
You can tell at a glance that
m_myvaris a member ofsomeclassbutlvaris not.