"Write a bool function template that accepts a vector of arbitrary type and a value of the same type and returns true if the vector contains the value, and false otherwise".
I'm reviewing for my final and this is one of the practice questions.
So this means to create a bool function with a template?
I'm confused when the beginning says "that accepts a vector of arbitrary type and a value of the same type". Could someone please explain this to me, and possibly correct my code?
bool funk(vector<T*> v)
if(v[i] == T*)
Thanks so much for the help!!