aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Partitioning.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Partitioning.h')
-rw-r--r--src/Partitioning.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h
index cf1bb6a7b..efa6bf95e 100644
--- a/src/Partitioning.h
+++ b/src/Partitioning.h
@@ -110,6 +110,11 @@ public:
return static_cast<T>(body->Length())-1;
}
+ void ReAllocate(ptrdiff_t newSize) {
+ // + 1 accounts for initial element that is always 0.
+ body->ReAllocate(newSize + 1);
+ }
+
T Length() const noexcept {
return PositionFromPartition(Partitions());
}