ptr.cpp 287 B

1234567891011121314151617
  1. #include "ptr.h"
  2. #include <util/system/defaults.h>
  3. #include <util/memory/alloc.h>
  4. #include <new>
  5. #include <cstdlib>
  6. void TFree::DoDestroy(void* t) noexcept {
  7. free(t);
  8. }
  9. void TDelete::Destroy(void* t) noexcept {
  10. ::operator delete(t);
  11. }
  12. TThrRefBase::~TThrRefBase() = default;