Category Archives: Memory Management

Smart pointers

It’s a question of ownership really. Who does own the underlying object? In Boost we have scoped_ptr and scoped_array – private ownership. I got my hands on the object and only I control it shared_ptr and shared_array – shared ownership … Continue reading

Posted in Boost, Memory Management | Comments Off

Custom memory management (implementation)

I reinvented the wheel… yet again. But the fun is not in the result but in the process. Here is how I designed the┬ácustom memory management solution: Class MemoryManager creates a set of heaps. Each heap holds objects with sizes … Continue reading

Posted in Memory Management | Comments Off