summaryrefslogtreecommitdiffstats
path: root/util/generic/ptr.cpp
blob: d1238fececda20bd56ca353ed097d3e00a40d5b9 (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;