To you maybe, but that's because you care about how the LinkedList is implemented. Why should a user of your class need to know how it is implemented?
Does the user of the LinkedList class even...
Type: Posts; User: grumpy
To you maybe, but that's because you care about how the LinkedList is implemented. Why should a user of your class need to know how it is implemented?
Does the user of the LinkedList class even...
Typically, the template parameter will reflect what you want the nodes to to contain. So
template<typename T> class Node
{
// whatever
};
template<typename T> class LinkedList
{