.. _mem_mgr_hpp: mem_mgr.hpp =========== This header file defines memory management functions for aligned allocation and deallocation using placement new and object destructor calls. These functions provide an alternative to using `new` and `delete` for memory management. Functions --------- .. doxygenfunction:: sctl::aligned_new .. .. doxygenfunction:: sctl::aligned_delete .. **Aligned Allocation**: .. .. - ``Iterator aligned_new(n_elem, mem_mgr = &MemoryManager::glbMemMgr())``: .. Aligned allocation as an alternative to `new`. Uses placement new to construct objects. Returns an iterator to the allocated memory. .. .. **Aligned Deallocation**: .. .. - ``aligned_delete(Iterator A, mem_mgr = &MemoryManager::glbMemMgr())``: .. Aligned deallocation as an alternative to `delete`. Calls the object destructor for deallocated memory. .. .. | .. .. .. raw:: html .. ..
..
.. .. .. literalinclude:: ../../include/sctl/mem_mgr.hpp .. :language: c++ ..