runtime 1.0.0
Checked CEL programs, owned values, and reusable execution stacks
Loading...
Searching...
No Matches
Reusable stacks

Detailed Description

Keep caller-owned storage across evaluations. Reserve before entering a frame and retain exclusive access to a stack throughout evaluation. See Choose execution and ownership boundaries for storage and failure guarantees.

Classes

class  cel::raw_stack
 Owns reusable canonical operand bytes and complete live-slot metadata. The owner outlives every borrowed frame. Moving rejects active frames. Exclusive access is required, including during nested evaluation. During canonical construction, operand acquisition, or retirement, reentrant mutation, extraction, execution, and frame entry throw std::logic_error. Ordinary operation callbacks may use the active frame or evaluate a nested frame. Example: raw_stack s; s.reserve(256, 256); s.push(2.0); auto n = s.pop<double>();. More...