For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
stack_allocation
Defines the stack_allocation function for stack-based memory allocation.
You can import these APIs from the memory package. For example:
from std.memory import stack_allocation
Functions
-
stack_allocation: Allocates data buffer space on the stack given a data type and number of elements.