What is the c++ equivalent to BP's Class Reference?

I am converting BP to C++ and the variable in question is a Class Reference;

What is the C++ equivalent?

TSubclassOf ?

I know I am overthinking this.
303131-

The equivalent is UClass*

TSubclassOf<…> is like UClass but enforces a certain subclass. For e.g. if you want to have only lights (point light, directional light etc) you’d use:

TSubclassOf<ALight> LightClass;

With UClass the user can assign any class to it

To get a hold of a class type in C++ use the StaticClass() function. E.g. APointLight::StaticClass()

Thank you Ali