Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Simple single-linked list template.
- //
- template <class ElementType> class TList
- {
- public:
- ElementType Element;
- TList<ElementType>* Next;
- // Constructor.
- TList(const ElementType &InElement, TList<ElementType>* InNext = nullptr)
- {
- Element = InElement;
- Next = InNext;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement