Website Summary Files Commits Branches @commit @diff @stats
path: root / src / List
diff options
context:
space:
mode:
2 files changed, 6 insertions, 0 deletions
-rw-r--r--src/List/List.cpp5
-rw-r--r--src/List/List.h1
diff --git a/src/List/List.cpp b/src/List/List.cpp
index b77729e..fbd3288 100644
--- a/src/List/List.cpp
+++ b/src/List/List.cpp
@@ -29,6 +29,11 @@ void List<T>::copyFrom(const List& other) {
/* Public */
template <class T>
+List<T>::List(const T* elements, unsigned elementsCount) {
+
+}
+
+template <class T>
void List<T>::add(const T& element) {
if (length == count) resize();
diff --git a/src/List/List.h b/src/List/List.h
index 2b5fc00..3f30edc 100644
--- a/src/List/List.h
+++ b/src/List/List.h
@@ -12,6 +12,7 @@ class List {
void copyFrom(const List& other);
public:
+ List(const T* elements, unsigned elementsCount);
void add(const T& element);
bool removeAt(unsigned index);
T& operator[](unsigned index);