diff options
Autocommit at 01.05.2022 @ 10:06
1 files changed, 5 insertions, 0 deletions
| -rw-r--r-- | src/List/List.cpp | 5 |
diff --git a/src/List/List.cpp b/src/List/List.cpp index 1ad0679..b77729e 100644 --- a/src/List/List.cpp +++ b/src/List/List.cpp @@ -51,6 +51,11 @@ T& List<T>::operator[](unsigned index) { } template <class T> +const T& List<T>::operator[](unsigned index) const { + return elements[index]; +} + +template <class T> unsigned List<T>::get_length() const { return length; } |
