From 5351831bb35cd216ae3cd8145c6172ae8341e905 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 1 May 2022 10:06:09 +0300 Subject: Autocommit at 01.05.2022 @ 10:06 --- src/List/List.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/List/List.cpp') 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 @@ -50,6 +50,11 @@ T& List::operator[](unsigned index) { return elements[index]; } +template +const T& List::operator[](unsigned index) const { + return elements[index]; +} + template unsigned List::get_length() const { return length; -- cgit v1.3.1-23-gd82d