vendredi 25 novembre 2016

C++ Is "class Name*" a class pointer?

I was watching an unreal tutorial and encountered this line of code:

class UStaticMeshComponent*  Pickup;

It is a forwards declaration. I have been studying c++ for a while and have not encountered anything like this before. I know about pointers and references, but I never seen this format: class Name*. Are we creating a class pointer to another class? I tried searching for class names followed by a *, but the only result that appeared were about data types and pointers.

At the bottom, in the private section

Aucun commentaire:

Enregistrer un commentaire