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: "???"
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/** @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 */
|