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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mixed_arena.h b/src/mixed_arena.h
index af585092e..47e718454 100644
--- a/src/mixed_arena.h
+++ b/src/mixed_arena.h
@@ -172,6 +172,10 @@ public:
return usedElements;
}
+ bool empty() const {
+ return size() == 0;
+ }
+
void resize(size_t size) {
if (size > allocatedElements) {
reallocate(size);