> home > Custom Layer Boundary API

managed_scope_allocator

September 8th 2024
Get the base allocator for a managed scope

Signature

C++
Base_Allocator*
managed_scope_allocator(Application_Links* app,
                        Managed_Scope scope);

Parameters

app

the standard custom layer context pointer

scope

the id of the scope to query

Return

a pointer to the base allocator for the managed scope if it exists, zero otherwise

Details

Anything allocated by this base allocator exists only as long as the managed scope exists. All of the allocations in the managed scope are freed by a bulk free operation when the managed scopes life time ends.