Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
3 files changed, 6 insertions, 1 deletions
-rw-r--r--src/.!lazygit.swobin24576 -> 24576 bytes
-rw-r--r--src/List/List.cpp5
-rw-r--r--src/List/List.h2
diff --git a/src/.!lazygit.swo b/src/.!lazygit.swo
index 3145500..7fb9838 100644
--- a/src/.!lazygit.swo
+++ b/src/.!lazygit.swo
Binary files differ
diff --git a/src/List/List.cpp b/src/List/List.cpp
index 1f3540f..f65cbba 100644
--- a/src/List/List.cpp
+++ b/src/List/List.cpp
@@ -42,6 +42,11 @@ void List<T>::add(const T& element) {
}
template <class T>
+bool List<T>::insertAt(const T& element) {
+
+}
+
+template <class T>
bool List<T>::removeAt(unsigned index) {
if (index >= count) return false;
diff --git a/src/List/List.h b/src/List/List.h
index d2e4280..1068bb7 100644
--- a/src/List/List.h
+++ b/src/List/List.h
@@ -17,7 +17,7 @@ class List {
public:
List(const T* elements, unsigned elementsCount);
void add(const T& element);
- bool insertAt(const T& element);
+ bool insertAt(const T& element, unsigned index);
bool removeAt(unsigned index);
T& operator[](unsigned index);
const T& operator[](unsigned index) const;