Feature Input

closed account (zb0S216C)
I'm creating a memory management library in C++. I have incorporated a few features so far. These features are associated with the memory management class. The features are as follows:

1) Protection from out-of-range pool element indices.
2) Element validation, and, element validation and on demand.
3) Element tagging.
4) Memory quick release.
5) Easy re-allocation.
6) A memory file dump.
7) The ability to backup a memory block before modification and memory restoration.

These are the features I have implemented so far. If you have any more features that I can implement, please let me know. Moreover, if you would like more information on any given feature, don't hesitate to ask.
Last edited on
Is this implemented as a standard allocator?

closed account (zb0S216C)
Is this implemented as a standard allocator?

I'm sorry but you need to be more specific. I will try to answer this. The memory management library contains a memory management class that stores it's elements dynamically. The class doesn't inherit from any standard container and is designed to be a standalone memory manager. However, a current feature in progress is the ability to append and detach elements. In addition, the managers is somewhat analogous to a Vector meaning that some features of a vector are set to be implemented into the manager in a different way. The features shall be modified to comply with safety rules.
All STL containers can specify the allocator (memory manager) that they will use. The allocator is an extension point for containers. It makes it possible to define task-specific allocators such as pool allocators or shared-memory allocators.

It sounds to me like your memory manager would make a useful allocator. And it gives you an opportunity to play with an area of C++ that few developers work with.

http://www.cplusplus.com/reference/std/memory/allocator/

This might provide more background:

http://drdobbs.com/cpp/184406243
closed account (zb0S216C)
Interesting read, PanGalactic. Thank you for your input, you've been a big help :)
Topic archived. No new replies allowed.