I'm working on a class project and for it for it we have to make a template class that is derived from vector and then be able to add and remove elements from it.
I thought I would make and iterator of the class since it is a vector I thought I should just be able to use "this" and create the iterator but "this" is a pointer so that didn't work.
If I try this:vector<T>::iterator p;
I get plenty of errors so can I even do this or do I just need to find a different solution?