16#ifndef TRACKINGITSU_INCLUDE_EXTERNALALLOCATOR_H_
17#define TRACKINGITSU_INCLUDE_EXTERNALALLOCATOR_H_
19#include <memory_resource>
28 using Type = std::underlying_type_t<o2::gpu::GPUMemoryResource::MemoryType>;
65 throw std::bad_alloc();
72 mAlloc->
deallocate(
static_cast<char*
>(p), bytes);
77 return this == &
other;
void * do_allocate(size_t bytes, size_t alignment) override
ExternalAllocatorAdaptor(ExternalAllocator *alloc)
void do_deallocate(void *p, size_t bytes, size_t) override
bool do_is_equal(const std::pmr::memory_resource &other) const noexcept override
virtual void pushTagOnStack(uint64_t)=0
virtual void deallocate(char *, size_t)=0
void * allocateStack(size_t s)
void * allocate(size_t s, Type type)
void setType(Type t) noexcept
Type getType() const noexcept
virtual void * allocate(size_t)=0
virtual void popTagOffStack(uint64_t)=0
GLint GLint GLsizei GLint GLenum GLenum type
VectorOfTObjectPtrs other