Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Namespaces
FixedStack.hpp File Reference

Fixed-size stack container for high-performance applications. More...

#include "shambase/aliases_int.hpp"
#include "shambase/assert.hpp"
#include <type_traits>
+ 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
 

Detailed Description

Fixed-size stack container for high-performance applications.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

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.