![]() |
Iridescence 1.00
Embedded Graphic Framework
|
static_stack implements a stack with statically allocated storage space More...
#include <ds_types_stack.h>
Additional Inherited Members | |
![]() | |
stack () | |
Creates an empty stack. | |
stack (const stack &rhs)=delete | |
void | clear (void) |
Clears the stack (removes all elements). | |
size_t | capacity (void) const |
Returns the capacity of the stack. | |
size_t | size (void) const |
Returns the current size of the stack. | |
bool | push (const T &item) |
Pushes an element on the stack. | |
T | pop (void) |
Pops the element on the top of the stack. If the stack is empty, this is undefined behaviour. | |
T | top (void) const |
Returns the element on the top of the stack without popping it. If the stack is empty, this is undefined behaviour. | |
const T * | findFirst (const T &item) const |
Finds the first occurence of the specified element. | |
int32_t | findFirstIndex (const T &item) const |
Finds the first occurence of the specified element. | |
const T * | findLast (const T &item) const |
Finds the last occurence of the specified element. | |
int32_t | findLastIndex (const T &item) const |
Finds the last occurence of the specified element. | |
![]() | |
T * | mArray |
size_t | mCapacity |
static_stack implements a stack with statically allocated storage space