jam 0.0.1
A compacting generational garbage collector for C++26
Loading...
Searching...
No Matches
jam::heap_scope Class Referenceexport
Word heap | module jam

Bind an existing heap, restoring the previous binding on scope exit.The heap must outlive the scope. Scopes nest on one thread and may re-enter a heap. They neither own the heap nor synchronize access to it. More...

Public Member Functions

 heap_scope (heap &arena) noexcept
 Use the supplied heap for implicit operations on this thread.
 ~heap_scope () noexcept
 Restore the binding saved at construction.

Detailed Description

Bind an existing heap, restoring the previous binding on scope exit.

The heap must outlive the scope. Scopes nest on one thread and may re-enter a heap. They neither own the heap nor synchronize access to it.

Definition at line 485 of file heap.ccm.


The documentation for this class was generated from the following file: