Hello! I have a question that has to do with templates...
I have the following template:
I have written this template in .h file and I want to move it to .cpp source file. My problem is that I don't know how to write the function in the .cpp file (it's just a copy-paste but how should I write the prototype of the function move_back?)Code:template <class T> class list { public: struct Node {... ... ...}; ... ... Node* move_back(Node* x) { return x->prev; } private: Node* head; };
Any kind of help will be very useful for me...