aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/list.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/axolotl/list.hh')
-rw-r--r--include/axolotl/list.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/axolotl/list.hh b/include/axolotl/list.hh
index b76abdd..ae41baa 100644
--- a/include/axolotl/list.hh
+++ b/include/axolotl/list.hh
@@ -16,6 +16,11 @@ public:
T const * end() const { return _end; }
/**
+ * Is the list empty?
+ */
+ bool empty() { return _end == _data; }
+
+ /**
* The number of items in the list.
*/
std::size_t size() { return _end - _data; }