xo-alloc2: work on AllocIterator [WIP]

This commit is contained in:
Roland Conybeare 2025-12-17 10:21:57 -05:00
commit 1383c477f0
8 changed files with 271 additions and 0 deletions

View file

@ -0,0 +1,40 @@
/** @file IAllocIterator_Any.cpp
*
* @author Roland Conybeare, Dec 2025
**/
#include "alloc/IAllocIterator_Any.hpp"
#include <iostream>
namespace xo {
namespace mm {
using xo::facet::DVariantPlaceholder;
using xo::facet::typeseq;
using xo::facet::valid_facet_implementation;
void
IAllocIterator_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"
<< " IAllocIterator_Any method"
<< std::endl;
std::terminate();
}
int32_t
IAllocIterator_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
bool
IAllocIterator_Any::_valid = valid_facet_implementation<AAllocIterator,
IAllocIterator_Any>();
} /*namespace mm*/
} /*namespace xo*/
/* end IAllocIterator_Any.cpp */