diff options
Autocommit at 14.06.2022 @ 07:28
1 files changed, 5 insertions, 0 deletions
| -rw-r--r-- | src/Generic/List/List.hpp | 5 |
diff --git a/src/Generic/List/List.hpp b/src/Generic/List/List.hpp index ba4851c..f26e7d1 100644 --- a/src/Generic/List/List.hpp +++ b/src/Generic/List/List.hpp @@ -204,6 +204,11 @@ const T& List<T>::operator[](unsigned index) const { } template <typename T> +const T* List<T>::raw_data() const { + return elements; +} + +template <typename T> List<T>& List<T>::operator+=(const List<T> other) { for (unsigned i = 0; i < other.length; i++) add(other[i]); |
