aboutsummaryrefslogtreecommitdiff
path: root/backend/ListIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ListIterator.h')
-rw-r--r--backend/ListIterator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/ListIterator.h b/backend/ListIterator.h
index 5e4774b..c7fbf4a 100644
--- a/backend/ListIterator.h
+++ b/backend/ListIterator.h
@@ -10,7 +10,7 @@ class List;
template <typename T>
class ListIterator {
public:
- ListIterator(List<T> & list, size_t index);
+ ListIterator(const List<T> & list, size_t index);
public:
T operator * () const;
@@ -18,14 +18,14 @@ public:
bool operator != (const ListIterator<T> &) const;
private:
- List<T> & list;
+ const List<T> & list;
size_t index;
};
template <typename T>
class ListRange {
public:
- ListRange(List<T> & list);
+ ListRange(const List<T> & list);
public:
ListIterator<T> begin() const;
@@ -33,7 +33,7 @@ public:
size_t size() const;
private:
- List<T> & list;
+ const List<T> & list;
};
#include "ListIterator.hpp"