#include "ptr.h" #include "yexception.h" #include #include #include #include void TFree::DoDestroy(void* t) noexcept { free(t); } void TDelete::Destroy(void* t) noexcept { ::operator delete(t); } TThrRefBase::~TThrRefBase() = default; [[noreturn]] void NDetail::NullDerefenceThrowImpl() { ythrow yexception{} << "nullptr dereference"; }