aboutsummaryrefslogtreecommitdiff
path: root/backend/List.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/List.h')
-rw-r--r--backend/List.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/List.h b/backend/List.h
index 1d8893e..58efbe2 100644
--- a/backend/List.h
+++ b/backend/List.h
@@ -18,7 +18,7 @@ struct ListLink {
template<typename T>
class List {
public:
- size_t size();
+ size_t size() const;
void push_back(T & el);
void remove(const T & val);
@@ -27,11 +27,11 @@ public:
void clear();
- T & operator [] (size_t index);
+ T & operator [] (size_t index) const;
- ListIterator<T> begin();
- ListIterator<T> end();
- ListRange<T> range();
+ ListIterator<T> begin() const;
+ ListIterator<T> end() const;
+ ListRange<T> range() const;
private:
ListLink<T> * head = nullptr;