jam 0.0.1
A compacting generational garbage collector for C++26
Loading...
Searching...
No Matches
jam::leaf< T > Struct Template Referenceexport

Opt out of value traversal when specializing tracer<T>.Derive tracer<T>, not the heap object, from leaf<T> to suppress value traversal. Ordinary types without hooks or manifests already use this behavior. An allocation-level claim_and_trace hook still takes precedence. Heap storage requirements are separate from this reference-free promise. More...

Static Public Member Functions

template<class Visitor>
static constexpr void trace (Visitor &, T const &) noexcept
 Visit no fields; allocation tracing still marks the complete extent.

Detailed Description

template<class T>
struct jam::leaf< T >

Opt out of value traversal when specializing tracer<T>.

Derive tracer<T>, not the heap object, from leaf<T> to suppress value traversal. Ordinary types without hooks or manifests already use this behavior. An allocation-level claim_and_trace hook still takes precedence. Heap storage requirements are separate from this reference-free promise.

Definition at line 126 of file heap.ccm.


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