summaryrefslogtreecommitdiff
path: root/asl/containers/chunked_buffer.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-06-26 14:29:16 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-06-26 18:25:00 +0200
commit43ab95880d54319ed8c02133c11392b37557ce58 (patch)
tree3c360015c20b398100ff3df380d06a690782c0a5 /asl/containers/chunked_buffer.hpp
parent47c667740560f06bb9f0bec761de816ba1dc1290 (diff)
Add pop method to chunked_buffer
Diffstat (limited to 'asl/containers/chunked_buffer.hpp')
-rw-r--r--asl/containers/chunked_buffer.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/asl/containers/chunked_buffer.hpp b/asl/containers/chunked_buffer.hpp
index 3af7aa2..152ddd2 100644
--- a/asl/containers/chunked_buffer.hpp
+++ b/asl/containers/chunked_buffer.hpp
@@ -335,6 +335,12 @@ public:
resize_uninit_inner(new_size);
}
+ void pop()
+ {
+ ASL_ASSERT(size() > 0);
+ resize_uninit_inner(size() - 1);
+ }
+
template<typename Chunk>
class generic_iterator
{