Open DipStax opened 8 months ago
The allocation of inserted object is actually made oustide of the library and so none of them can be terme as generic.
Allocator should be a struct, who take at least:
Allocator
constructor
Destructor
Size
This features will required to move from a imperative structure to an object oriented style. So it will need more investigation on how to modify the code base to an object oriented design.
Why:
The allocation of inserted object is actually made oustide of the library and so none of them can be terme as generic.
What:
Allocator
should be a struct, who take at least:constructor
function, to build the object defined by the user.Destructor
function to deallocate the necessary ressources.Size
that will store the actual size of the object allocated.