Hey there, I’m new to C++ and was curious why I’m able to create an object from a Class Template without any keywords like ‘new’ or ‘NewObject’:
TActorIterator<APawn> ActorItr = TActorIterator<APawn>(GetWorld());
This code works, but I find it confusing since it’s the same syntax structure as a template function such as:
CreateDefaultSubobject<Class>(TEXT(" "));
Could anyone explain why this is? Thank you!