![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Fixed-size stack container for high-performance applications. More...
Include dependency graph for FixedStack.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | shambase::FixedStack< T, stack_size > |
| Fixed-capacity stack container with compile-time size determination. More... | |
Namespaces | |
| namespace | shambase |
| namespace for basic c++ utilities | |
Fixed-size stack container for high-performance applications.
This header provides a stack container with compile-time fixed capacity, designed for performance-critical applications where dynamic memory allocation must be avoided. The stack uses a statically allocated array and manages elements using a cursor-based approach.
The FixedStack is particularly useful in GPU kernels, real-time systems, and algorithms where memory allocation overhead is prohibitive, such as tree traversal algorithms or depth-first search operations.
Definition in file FixedStack.hpp.