summaryrefslogtreecommitdiff
path: root/src/mixed_arena.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixed_arena.h')
-rw-r--r--src/mixed_arena.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mixed_arena.h b/src/mixed_arena.h
index 9354527ec..a1c51b5eb 100644
--- a/src/mixed_arena.h
+++ b/src/mixed_arena.h
@@ -208,6 +208,11 @@ public:
usedElements++;
}
+ T& front() const {
+ assert(usedElements > 0);
+ return data[0];
+ }
+
void erase(Iterator start_it, Iterator end_it) {
assert(start_it.parent == end_it.parent && start_it.parent == this);
assert(start_it.index <= end_it.index && end_it.index <= usedElements);