Advertisement
Guest User

Untitled

a guest
Nov 30th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. //
  2. // Simple single-linked list template.
  3. //
  4. template <class ElementType> class TList
  5. {
  6. public:
  7.  
  8.     ElementType         Element;
  9.     TList<ElementType>* Next;
  10.  
  11.     // Constructor.
  12.  
  13.     TList(const ElementType &InElement, TList<ElementType>* InNext = nullptr)
  14.     {
  15.         Element = InElement;
  16.         Next = InNext;
  17.     }
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement