Loading...
Searching...
No Matches
allocator.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
21 class _nout allocator: public memoryHaver {
22 BY(ME(allocator))
23
24 public:
25 // allocator:
26 explicit allocator(ncnt blksize = 1);
27
28 public:
29 virtual void* new1() = 0;
30 virtual nbool del(void* used, ncnt sz) = 0;
31 ncnt getBlkSize() const;
32
33 private:
34 ncnt _blksize;
35 };
36}
Abstract allocator interface for memory management.
Definition allocator.hpp:21
Abstract interface for objects that own memory.
Definition memoryHaver.hpp:29
Rich logging support with polymorphic type conversion.
Definition richLog.hpp:34