allocator.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
memlite/pool/memoryHaver.hpp
"
5
6
namespace
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
}
by::allocator
Abstract allocator interface for memory management.
Definition:
allocator.hpp:12
by::memoryHaver
Abstract interface for objects that manage memory.
Definition:
memoryHaver.hpp:14
memoryHaver.hpp