std.experimental.allocator.building_blocks.scoped_allocator

Members

Structs

ScopedAllocator
struct ScopedAllocator(ParentAllocator)

ScopedAllocator delegates all allocation requests to ParentAllocator. When destroyed, the ScopedAllocator object automatically calls deallocate for all memory allocated through its lifetime. (The deallocateAll function is also implemented with the same semantics.)

Meta