Quick question about class template
Hi@all
I wrote my own list class now I am supposed to convert it to a template class so I can use it for another program.
In my list I also have an iterator class which I implemented.
At the begining of .h file, I put
Code:
template <typename Item>
and I changed functions that I wrote for list class like for copy constructor
Code:
list (const list<Item>& orginal)
my question is do I need to change anything for iterator class? I have an example template class which doesn't have an iterator class in it so I am confused :confused:
thanks