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 {
23 BY_INIT_META(me)
24
25 public:
26 // allocator:
27 explicit allocator(ncnt blksize = 1);
28
29 public:
30 virtual void* new1() = 0;
31 virtual nbool del(void* used, ncnt sz) = 0;
32 ncnt getBlkSize() const;
33
34 private:
35 ncnt _blksize;
36 };
37}
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