Hey i am trying to transform a vectors of pointers to an object into another vector of pointers to a different object.
I have been given the following classes:
class Test;
class Test2 {
public:
Test2(Test*);
}
I am unfamiliar on how to create a functor. this is part of a sample exam for exams later this week i am confused on this question though. The following link explains the use of transform quite well but my problem is a little different. Any help would be great!
Reference: http://www.cplusplus.com/reference/algorithm/transform/