Ok, I need to know the code for a function that returns a head pointer. This program is done using template functions. So far, what I have is a struct for the node (includes data and a link), a class that has private member variables for the headptr, (which is what I want to return). I now need a non-member function that takes in two nodes and compares them. the only problem is I can't find how to make a function that will return the headptr node. any help will be greatly appreciated.
