I am strugling with the second function. I want it to be just like the first one but to accept List and vector
void draw__vec(vector<shape *> vs){
for(int i=0; i< vs.size();i++){
vs[i]->draw();
}
}
template <typename T>
void draw_generic(T<shape *> c){
}
One way is to use iterators.