diff options
Autocommit at 01.05.2022 @ 10:16
2 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | src/List/List.cpp | 5 | ||||
| -rw-r--r-- | src/List/List.h | 1 |
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); |
