Updated Linked List to use adapated protection levels
This commit is contained in:
parent
25091543a2
commit
23e7860e43
@ -49,7 +49,7 @@ namespace Datastructures {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Add new node and set to tail.
|
//Add new node and set to tail.
|
||||||
(*mTail).mNext = std::make_shared<Nodes::LinkedListNode<T>>(value);
|
(*mTail).next = std::make_shared<Nodes::LinkedListNode<T>>(value);
|
||||||
mTail = (*mTail).mNext;
|
mTail = (*mTail).next;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,8 +9,6 @@ namespace Datastructures {
|
|||||||
public:
|
public:
|
||||||
//Inherit Constructor and destructor from generic Undirectetd Node
|
//Inherit Constructor and destructor from generic Undirectetd Node
|
||||||
using Generic::UndirectedNode<T, LinkedListNode<T>>::UndirectedNode;
|
using Generic::UndirectedNode<T, LinkedListNode<T>>::UndirectedNode;
|
||||||
template <typename T>
|
|
||||||
friend class LinkedList;
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user