C++ SDK Documentation  11.0.1
stack_array< T, MAX_STACK_ELEMS > Struct Template Reference
Collaboration diagram for stack_array< T, MAX_STACK_ELEMS >:
Collaboration graph

Public Member Functions

 stack_array (size_t n_elements)
 
 stack_array (const stack_array &)=delete
 
 stack_array (stack_array &&)=delete
 
T & at (size_t idx)
 
T * begin ()
 
T * end ()
 
size_t getNumElements ()
 
T * getPtr ()
 
size_t getSize ()
 
 operator T * ()
 
T * operator& () const =delete
 
T * operator() ()
 
T * operator+ (size_t i)
 
T * operator-> ()
 
stack_arrayoperator= (const stack_array &)=delete
 
stack_arrayoperator= (stack_array &&)=delete
 
T & operator[] (size_t idx)
 

Detailed Description

template<typename T = char, size_t MAX_STACK_ELEMS = 8>
struct stack_array< T, MAX_STACK_ELEMS >

Replacement for variable-length stack arrays, but with bounded stack usage. If there is more usage than expected, it will error.