git subrepo clone git@github.com:Rconybea/xo-alloc2.git xo-alloc2
subrepo: subdir: "xo-alloc2" merged: "4039c29f" upstream: origin: "git@github.com:Rconybea/xo-alloc2.git" branch: "main" commit: "4039c29f" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
This commit is contained in:
parent
cf0bd4d975
commit
6a82040d48
105 changed files with 8693 additions and 0 deletions
39
xo-alloc2/src/alloc2/SetupAlloc2.cpp
Normal file
39
xo-alloc2/src/alloc2/SetupAlloc2.cpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/** @file SetupAlloc2.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Feb 2026
|
||||
**/
|
||||
|
||||
#include "SetupAlloc2.hpp"
|
||||
#include <xo/alloc2/Arena.hpp>
|
||||
#include <xo/alloc2/ArenaIterator.hpp>
|
||||
#include <xo/facet/FacetRegistry.hpp>
|
||||
#include <xo/indentlog/scope.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::facet::FacetRegistry;
|
||||
//using xo::facet::TypeRegistry;
|
||||
using xo::reflect::typeseq;
|
||||
|
||||
namespace mm {
|
||||
|
||||
bool
|
||||
SetupAlloc2::register_facets()
|
||||
{
|
||||
scope log(XO_DEBUG(true));
|
||||
|
||||
FacetRegistry::register_impl<AAllocator, DArena>();
|
||||
FacetRegistry::register_impl<AAllocIterator, DArenaIterator>();
|
||||
|
||||
log && log(xtag("DArena.tseq", typeseq::id<DArena>()));
|
||||
log && log(xtag("DArenaIterator.tseq", typeseq::id<DArenaIterator>()));
|
||||
|
||||
log && log(xtag("AAllocator.tseq", typeseq::id<AAllocator>()));
|
||||
log && log(xtag("AAllocIterator.tseq", typeseq::id<AAllocIterator>()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end SetupAlloc2.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue