allocator.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace by {
7
12 class _nout allocator: public memoryHaver {
13 BY_ME(allocator)
14 BY_INIT_META(me)
15
16 public:
17 // allocator:
18 explicit allocator(ncnt blksize = 1);
19
20 public:
21 virtual void* new1() = 0;
22 virtual nbool del(void* used, ncnt sz) = 0;
23 ncnt getBlkSize() const;
24
25 private:
26 ncnt _blksize;
27 };
28}
Abstract allocator interface for memory management.
Definition: allocator.hpp:12
Abstract interface for objects that manage memory.
Definition: memoryHaver.hpp:14