Next: , Previous: , Up: Companion Interfaces   [Index]


13.2 Hierarchical Resource Allocation Manager

Temporaries allocation require a scoped or hierarchical allocation mechanism, one for which new allocation scopes or contextes can be spawn and operated as the current/default one, while preserving the prior ones.

See Temporaries.

See Procedural Temporaries.

The hierarchical resource allocation manager is one such scoped allocation mechanism, allowing new allocation contexts to be created and destroyed when required, presumably before and after function calls.

The allocation manager does not allocate memory per se, and instead is creating temporaries allocators per every new entered scope. Temporaries allocation and registraction and later collection is done through the per scope allocators.