From 43ab95880d54319ed8c02133c11392b37557ce58 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 26 Jun 2025 14:29:16 +0200 Subject: Add pop method to chunked_buffer --- asl/containers/chunked_buffer.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'asl/containers/chunked_buffer.hpp') 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 class generic_iterator { -- cgit