Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- template <class T>
- class List {
- public:
- typedef T value_type;
- typedef T& reference_type;
- typedef T const& const_reference_type;
- typedef T* pointer_type;
- typedef T const* const_pointer_type;
- void add(T element);
- T get(int i);
- bool is_empty();
- void show();
- List();
- List(List *next);
- private:
- List* next;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement