From bca03275bcfabd3212954306f0640094346ced79 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 1 Mar 2026 13:06:57 +1100 Subject: [PATCH] xo-reader2 stack: + #q token + QuoteSsm [WIP - not functional] --- include/xo/arena/DArena.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/xo/arena/DArena.hpp b/include/xo/arena/DArena.hpp index 2442918..83ebd9c 100644 --- a/include/xo/arena/DArena.hpp +++ b/include/xo/arena/DArena.hpp @@ -161,6 +161,12 @@ namespace xo { **/ AllocInfo alloc_info(value_type mem) const noexcept; + /** convenience template for allocating for a T-instance **/ + template + void * alloc_for(size_type n = sizeof(T)) { + return this->alloc(typeseq::id(), n); + } + /** allocate at least @p z bytes of memory. * Return nullptr and capture error if unable to satisfy request. * May expand committed memory, as long as resulting committed size