From 8f98ed0d2b6889ac1141900eab4216d54f19f73c Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 24 Dec 2025 19:39:11 -0500 Subject: [PATCH] xo-gc xo-object2 xo-alloc2: templates for FOMO [WIP] --- docs/DArenaIterator-reference.rst | 2 +- docs/IAllocator_Xfer-reference.rst | 3 +++ src/alloc2/ArenaConfig.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/DArenaIterator-reference.rst b/docs/DArenaIterator-reference.rst index 4ef4c196..c70bd642 100644 --- a/docs/DArenaIterator-reference.rst +++ b/docs/DArenaIterator-reference.rst @@ -3,7 +3,7 @@ DArenaIterator ============== -Iterator for allocs obtained from a :cpp:class:`DArena`. +Iterator for allocs obtained from a :cpp:class:`xo::mm::DArena`. Context ------- diff --git a/docs/IAllocator_Xfer-reference.rst b/docs/IAllocator_Xfer-reference.rst index 9ca90565..e57544b2 100644 --- a/docs/IAllocator_Xfer-reference.rst +++ b/docs/IAllocator_Xfer-reference.rst @@ -6,6 +6,9 @@ IAllocator_Xfer IAllocator_Xfer provides a type-erased interface to a specific native allocator implementation. +It supports runtime polymorphism for the cpp:class:`xo::mm::AAllocator` facet. +Application code iis unlikely to directly interact with this class + Context ------- diff --git a/src/alloc2/ArenaConfig.cpp b/src/alloc2/ArenaConfig.cpp index 942a7e91..7f4e4248 100644 --- a/src/alloc2/ArenaConfig.cpp +++ b/src/alloc2/ArenaConfig.cpp @@ -9,7 +9,7 @@ namespace xo { ArenaConfig ArenaConfig::simple(std::size_t z) { - return ArenaConfig { .size_ = z }; + return ArenaConfig { .name_ = "anonymous", .size_ = z }; } } }