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/List.h | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
Diffstat (limited to 'backend/List.h')
-rw-r--r-- | backend/List.h | 10 |
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; |