Advertisement
kamyszek

Untitled

Dec 9th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. template <class T>
  7. class List {
  8.     public:
  9.         typedef T value_type;
  10.         typedef T& reference_type;
  11.         typedef T const& const_reference_type;
  12.         typedef T* pointer_type;
  13.         typedef T const* const_pointer_type;
  14.  
  15.         void add(T element);
  16.         T get(int i);
  17.         bool is_empty();
  18.         void show();
  19.         List();
  20.         List(List *next);
  21.     private:
  22.         List* next;
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement