23  const void* 
ptr()
 const {
 
 
 
   58  virtual Buffer malloc(
size_t size, 
bool allow_swap = 
false) 
override;
 
 
 
Definition allocator.h:39
 
Allocator & operator=(const Allocator &other)=delete
 
Allocator & operator=(Allocator &&other)=delete
 
Allocator(Allocator &&other)=delete
 
virtual ~Allocator()=default
 
virtual Buffer malloc(size_t size, bool allow_swap=false)=0
Abstract base class for a memory allocator.
 
Allocator(const Allocator &other)=delete
 
virtual void free(Buffer buffer)=0
 
Definition allocator.h:12
 
const void * ptr() const
Definition allocator.h:23
 
Buffer(void *ptr)
Definition allocator.h:17
 
void * ptr()
Definition allocator.h:26
 
Definition allocator.h:55
 
virtual Buffer malloc(size_t size, bool allow_swap=false) override
A general CPU allocator.
 
virtual void free(Buffer buffer) override
 
friend Allocator & allocator()
 
Buffer malloc(size_t size)
 
Buffer malloc_or_wait(size_t size)