xo-alloc2: + Allocator.expand() + streamlining _Any

This commit is contained in:
Roland Conybeare 2025-12-12 11:19:05 -05:00
commit 12ade26a79
8 changed files with 167 additions and 18 deletions

View file

@ -4,6 +4,7 @@
**/
#include "IAllocator_Any.hpp"
#include <iostream>
namespace xo {
using xo::facet::DVariantPlaceholder;
@ -12,6 +13,17 @@ namespace xo {
namespace mm {
void
IAllocator_Any::_fatal() {
/* control here on uninitialized IAllocator_Any.
* Initialized instance will have specific implementation type
* e.g. IAllocator_Xfer<DArena>
*/
std::cerr << "fatal: attempt to call uninitialized IAllocator_Any" << std::endl;
std::terminate();
}
int32_t
IAllocator_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();