Had some trouble understanding what this part does. Does it create something thats pointed to by feature? If so, what will its name be (will it have one or be accessible only by this pointer?) so will the return part give back the pointer Freature?
Might be a simple answer but i got stuck on a few questions like this one. An explanation could help a lot so again, thanks in advance.
Ptr<FeatureEvaluator> * FeatureE
Here FeatureE is a pointer to type Ptr<FeatureEvaluator>/ Ptr is a templated class and FeatureEvaluator is a template argument (just like vector<int>)
Second part of expression: new Ptr<FeatureEvaluator>; creates new object of type Ptr<FeatureEvaluator>
So you are declaring a pointer to the Ptr<FeatureEvaluator> and initialize it with a new object of corresponding type