allocatortraitsAllocdestroya
AllocatortraitsAllocdestroya is a proposed extension to the C++ allocator_traits framework that introduces a dedicated destruction policy, called Allocdestroya, for memory deallocation. The concept aims to separate the destruction of objects from the release of memory, allowing custom allocators to control when and how destructors are invoked during deallocation.
In this design, Allocdestroya is expressed as a policy type or an enumerated value that accompanies an
Allocator_traits would be extended to expose the Allocdestroya policy through the allocator’s trait specialization. A deallocation
Usage considerations include compatibility with existing standard library components and the potential performance impact of conditional
See also: allocator_traits, custom allocators, memory management policies.