InstanceDestructor

An interface for components that can destruct components of type T and deallocate them using provided allocator.

@safe
interface InstanceDestructor : LocatorAware!(), AllocatorAware!()(
T
) {}

Members

Functions

destruct
void destruct(T destructable)

Destruct a component of type T and deallocate it using stored allocator.

Meta