Website Summary Files Commits Branches @commit @diff @stats
path: root / src / List / List.h
diff options
context:
space:
mode:
1 files changed, 0 insertions, 42 deletions
-rw-r--r--src/List/List.h42
diff --git a/src/List/List.h b/src/List/List.h
deleted file mode 100644
index 23e3ee5..0000000
--- a/src/List/List.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef HEADER_LIST
-#define HEADER_LIST
-
-#include "istream"
-#include "ostream"
-
-template <class T>
-class List {
- T* elements;
- unsigned length;
- unsigned count;
-
- void resize();
- void free();
- void copyFrom(const List& other);
-
-public:
- List(const T* elements, unsigned elementsCount);
- void add(const T& element);
- bool insertAt(const T& element, unsigned index);
- bool removeAt(unsigned index);
- unsigned findIndex(const T& element) const;
- bool contain(const T& element) const;
- T& operator[](unsigned index);
- const T& operator[](unsigned index) const;
-
- std::istream& read(std::istream& istr);
- std::ostream& write(std::ostream& ostr) const;
-
- unsigned get_length() const;
- unsigned get_count() const;
-
- List();
- List& operator=(const List& other);
- List(const List& other);
- ~List();
-
- List(List&& other);
- List& operator=(List&& other);
-};
-
-#endif