11 template <
class T,
int N>
12 Stack<T, N>::Stack() : m_size(0), m_data()
16 template <
class T,
int N>
22 template <
class T,
int N>
28 template <
class T,
int N>
34 template <
class T,
int N>
40 template <
class T,
int N>
47 template <
class T,
int N>
53 template <
class T,
int N>
59 template <
class T,
int N>
void clear()
Clear the stack content.
std::array< T, N > m_data
Fixed-size data buffer.
void pop()
Pop the last element of the Stack.
int size() const
Get the number of elements in the Stack.
void push(const T &value)
Add an element on top of the stack.
int m_size
Number of elements in the Stack.
bool empty() const
Is the stack empty.
const T & top() const
Read access to the top element of the Stack.
This Source Code Form is subject to the terms of the Mozilla Public License, v.