I have been trying to create a template of the following function.
static void search(vector <Cleassname> c, string str);
i tried something like this in my .h file
template <typename T, typename U> static void search(vector <T*> c, U str);
and in my .cpp file i tried
template <typename T, typename U> void CLASS::search(vector <T*> c, U str){}
i declared vector vector_var and passing its address to the function using & wheneveer i call upon the fonction in main(), it says there no reference to such function.
CLASS::search(&vector_var, mystring);