aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ptr.cpp
blob: b28755821f12dec370a5ff72623f4e1b6f69b4fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "ptr.h"

#include <util/system/defaults.h>
#include <util/memory/alloc.h>

#include <new>
#include <cstdlib>

void TFree::DoDestroy(void* t) noexcept { 
    free(t);
}

void TDelete::Destroy(void* t) noexcept { 
    ::operator delete(t);
}

TThrRefBase::~TThrRefBase() = default;