aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/list.hh
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-02-25 17:33:00 +0000
committerMark Haines <mjark@negativecurvature.net>2015-02-25 17:33:00 +0000
commita4e5bf977297f3142e51c3fe94b0ded8af12224a (patch)
tree94946011cfa7abf3ec5fdaa5a69e7e1822c6d4af /include/axolotl/list.hh
parent5f9cc65589e71a47e0a06b2dd6fb39540eaaf9e5 (diff)
Don't bother passing through the mac_length, the caller already knows it since they supplied it
Diffstat (limited to 'include/axolotl/list.hh')
-rw-r--r--include/axolotl/list.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/axolotl/list.hh b/include/axolotl/list.hh
index ae41baa..a3c3d01 100644
--- a/include/axolotl/list.hh
+++ b/include/axolotl/list.hh
@@ -18,12 +18,12 @@ public:
/**
* Is the list empty?
*/
- bool empty() { return _end == _data; }
+ bool empty() const { return _end == _data; }
/**
* The number of items in the list.
*/
- std::size_t size() { return _end - _data; }
+ std::size_t size() const { return _end - _data; }
T & operator[](std::size_t index) { return _data[index]; }