diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
tree | c2505409c68d554b1e776cdb0c8104af54d375bf /backend/ListIterator.h | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
Diffstat (limited to 'backend/ListIterator.h')
-rw-r--r-- | backend/ListIterator.h | 8 |
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" |