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
44
xo-alloc2/src/alloc2/IAllocator_Any.cpp
Normal file
44
xo-alloc2/src/alloc2/IAllocator_Any.cpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/** @file IAllocator_Any.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "alloc/IAllocator_Any.hpp"
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
|
||||
namespace xo {
|
||||
using xo::facet::DVariantPlaceholder;
|
||||
using xo::facet::typeseq;
|
||||
using xo::facet::valid_facet_implementation;
|
||||
|
||||
namespace mm {
|
||||
|
||||
// LCOV_EXCL_START
|
||||
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 method"
|
||||
<< std::endl;
|
||||
|
||||
std::terminate();
|
||||
}
|
||||
// LCOV_EXCL_STOP
|
||||
|
||||
typeseq
|
||||
IAllocator_Any::s_typeseq = typeseq::id<DVariantPlaceholder>();
|
||||
|
||||
bool
|
||||
IAllocator_Any::_valid = valid_facet_implementation<AAllocator, IAllocator_Any>();
|
||||
|
||||
} /*namespace mm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IAllocator_Any.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue